Rather hard as you cant get the browser to automatically update its page at
the moment the session times out (not without doing a lot of wierd things
that are not worth the effort), so you cant really do anything until the
next request comes through at which point you could display a page stating
that the session timed out and prompting the user to login again.

Note that at this point you would be in a new session. I believe the normal
way to detect this condition is to put an object into session context when
the user logs in, and then when the request comes through you check to see
if that object is there, if not redirect the user appropriately. This task
is a good candidate for using a filter if you are running in a servlet2.3
compliant container, otherwise you could override the request processor to
check this on each request. There are a few other ways too I think.

-----Original Message-----
From: Mohan Radhakrishnan [mailto:MohanR@;hclcomnet.co.in]
Sent: Friday, October 18, 2002 15:02
To: 'Struts Users Mailing List'
Subject: Session timeout jsp


Hi,
   Can you show a session timeout page when the session times out ? Do you
just listen to the event and forward ?
   Is there a declarative way of doing that?
bye,
Mohan


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to