It's not a secret anymore!*
The moose likes JSP and the fly likes session timeout - setmaxintervaltime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session timeout - setmaxintervaltime" Watch "session timeout - setmaxintervaltime" New topic
Author

session timeout - setmaxintervaltime

kumar thokkala
Greenhorn

Joined: Apr 12, 2004
Posts: 24
public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.

'client requests'- does this refer to request to jsp's/servlets that participate in session or any page on server/container like html, jsp, etc..
Why this confusion/doubt?
If user opened a jsp page that participates in session and remained idle for period of session max interval ..session will expire, but if I use a javascript setTimeout function which will be called at session max timeout period to open(pop up) a jsp page that participates in session, then I have made a request to container so session is extended, but this way session will never end. But instead of of opening(pop up) a jsp page that participates in session, what if I pop up a simple html, would this still extend the session?
someone please clear my confusion.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session timeout - setmaxintervaltime