httpsession setMaxInactiveInterval question
Just a simple question....
If I set the http session to be never timeout with using
ses = req.getSession();
ses.setMaxInactiveInterval(-1);
If the user close it web browser without logout my web application, that http session will be alive forever ? and does it cause any problem regarding the server resources?
Thanks
[356 byte] By [
l2laia] at [2007-11-27 4:45:52]

# 1
As far i can think and as per my understanding of session handling, I can say that weather you close the browser or not is not the issue, the inactivity interval is the issue.
What i mean is even if you dont close the browser and if the session is inactive for more than the session time-out period, the session expires. if you close the browser, the session is killed instantanously.
ckeck and let me know if this is not correct.
Praveen