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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session management

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
I need to setup a session object. After 10 min without any activity, it will clear the session and redirect user to login page. Can someone help me please?

What if user use the back button? What is the best way to handle this? I don't want to disable the back button because it's annoying.

Many Thanks.
 
Every page of your website has piece of code checking for if there is session, you can write piece of code in a library.jsp file and include it.
You can use setMaxInactiveInterval(600) for user session after user has submitted a page with valid login name and correct password.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top