Thread: Session Expiry
View Single Post
  #2 (permalink)  
Old 07-09-2007, 05:08 AM
Peter Peter is offline
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
use HttpSessionListener and use its life cycle event to detect the session invalidation.

Use following to make sure that the session is invalid and forward or redirect to an error.jsp page.
Code:
HttpServletRequest.getRequestedSessionId() HttpServletRequest.isRequestedSessionIdValid().
Reply With Quote