/ ** 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> * /