• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timeout listener

 
Robert James Liguori
Author
Ranch Hand
Posts: 551
5
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a listener to determine when a session has expired (i.e. sessionDestroyed method of HttpSessionListner).

What is the best way to redirect to a (session expired message) web page when a session has expired?

I'm trying to call a servlet but apparently doesn't work due to some subtlety in the session expiration.

Also, I need the code only to work for timeout's... not when destroy the session by logging out.

Thanks!
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the meta refresh header in combination with ${pageContext.session.maxInactiveInterval}.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic