Set of two ways session is valid

/ ** two ways session is valid provided: 
  * 1 code is set: session.setMaxInactiveInterval (30); // Unit: seconds. Valid for 30 seconds, 30 minutes by default. 
  * 2.web.xml set: 
  * <- Unit:! Minutes, the default is 30 minutes. -> 
  * <the session-config> 
  * <-the session timeout> 30 </-the session timeout> 
  * </ the session-config> 
  * /

 

Guess you like

Origin www.cnblogs.com/tanjiyuan/p/11267224.html