- Global default - App Server has its own session timeout depending on the length of the session. Can't do anything with this.
- Webapps default - Here is the time to play with DD file. We can change the web.xml file to define the timeout and here is the small change:

Value here(40) goes in minute in session-timeout tag. But the most important is individual session setting
- Individual session setting: For this, we can write one line servlet code :
HttpSession.setMaxInactiveInterval(2400); // here time is in seconds.
Interesting part is defining 0 or negative in webapps default, leads to a never expired session whereas 0 means Immediate expire and negative means never, in Individual session setting. In HttpSession API, we can always kill the session by calling invalidate() method. So, on log-out button, just call this simple code.
In the next blog, I will try a simple code to see the session life cycle.
viagra rrp australia cost buy viagra in london england viagra rx viagra oral jelly cheap viagra overnight effect of viagra on women free viagra without prescription viva viagra viagra overnight generic viagra online buy generic viagra can viagra be used by women buy sublingual viagra online free viagra in the uk
ReplyDelete