In our application we handle user inactivity using a javascript timer on the client side. The requirement we had was to issue a warning message if the user has not typed or clicked anything for some period of time. What we do is once the javascript timer expires we post a message which the user can click on to reactivate the timer. Otherwise the user's session is invalidated by sending a request to some action class on the server.
I was wondering if such a requirement can be handled on the server side? -----Original Message----- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 8:32 AM To: Struts Users Mailing List Subject: Re: Best practice for redirecting on session timeout? Hi Adam, One possibility is to have the timing out of the session be managed by your container and have the redirection issued by a filter. If you are using Tomcat 4+ this is very straightforward to implement. In the web.xml, you declare your session-timeout value and your filter class. After having declared your filter, you need to map it to a uri for which it will be applied. Aladin Adam Lipscombe wrote: > Folks, > > > I there a standard way of handling session timeouts. If a user has been > inactive for longer than N minutes I want to redirect them to the login > page. > > It occurs to me that this could be done in a) the RequestProcessor or b) in > an JSP include. > > > Is there another way? > What is best practice? > > > TIA - Adam > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]