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

Hi, When HttpSession become inva

Status
Not open for further replies.

neltan

Programmer
Nov 4, 2002
82
AU
Hi,
When HttpSession become invalid after the inactive time. Any click on the jsp/servlet will generate the error.

1. Can something like "listener" record database that current user is going to logout?

2. Automatically redirect to login page after invalidate the HttpSession?

3. How to set no-cache on jsp so that browser cannot go back?

Best Regards,
neltan :)
 
I seriously dint understand ur first question

This is the Answer for ur 2nd Question:
response.sendRedirect ("Login.jsp");

This is the Answer for ur 3rd Question:

response.setHeader("Pragma", "No-cache") ;
response.setDateHeader("Expires", 0) ;
response.setHeader("Cache-Control", "No-cache") ;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top