Click to See Complete Forum and Search --> : Session Expiration


viresh.madan
03-02-2007, 12:12 AM
hi frends..

I am making JSP pages and My session expires very soon... i think after 20 minutes if i dont use the application... can u please tell me the method with which i can increase the time of session expiration to say 2 hours...


I would also like to know how to tackle this problem so that the project doesnot throw exception and i send them to appropriate page for re login.

vsaisravan_2000
03-05-2007, 10:26 AM
oh
sir which server ur using

mickscool
03-05-2007, 04:02 PM
Check this HTTPSession method:

setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.