A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
Timeout listener
Robert Liguori
Author
Ranch Hand
Joined: Nov 27, 2007
Posts: 426
posted
Feb 20, 2009 09:44:26
0
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!
Robert J. Liguori
-
OCA Java SE 7 Programmer I Study Guide (Exam 1Z0-803)
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
Feb 20, 2009 11:32:54
0
Use the meta refresh header in combination with ${pageContext.session.maxInactiveInterval}.
Code depot of a Java EE / JSF developer
|
JSF / Eclipse / Tomcat kickoff tutorial
|
DAO kickoff tutorial
|
I ♥ Unicode
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Timeout listener
Similar Threads
Browser Back Button
Restrict Login from Multiple Sessions
Real Role of Listeners in actual application?
HttpSession equals null in Action class
Why my SipServlet throwing "SipApplicationSession is not valid." exception ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter