Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Timeout? 1

Status
Not open for further replies.

Tokhra

Programmer
Oct 1, 2003
134
ES
Hi all,

I've written a JSP webapp which will be used by office workers, so I need the session not to expire for something like 4 hours, im currently using this code:

// Set session expiration to 4 hours
session.setMaxInactiveInterval(240);

I was told the value is in minutes, but im sure its expiring in under 5 minutes of inactivity.

Does anyone know if this is correct, or if its the wrong way of setting session expiration how should I be setting it?

I have searched for this on google but can't find anything.

Thanks,
Matt.
 
Great, thanks alot. I wondered where the API for JSP stuff was :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top