You can store an attribute in session when you initially start the session Subsquent checks for that attribute on EACH request will check if that Attribute doesn't exist...session has expired or they are not logged on etc.
Of course the key to this is to put a hook on RequestProcessor to run this snipt For each request...if you do this correctly...the request won't even make it to your action You can redirect them to whatever page you like... We have similar code but we use Struts 1.0 so we have extended ActionServlet and have Written the processPreProcess() (I think..that is what the method is called..can't recall the actual name) Khalid -----Original Message----- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 8:18 AM To: [EMAIL PROTECTED] Subject: detecting session timeout Any suggestions on how to detect session timeouts? I am experimenting with extending TilesRequestProcessor (I'm using struts 1.1 and tiles). Here's an example of the kind of thing I would like to detect: I have a multipage registration process. Suppose a user gets halfway through and then goes away for some reason (lunch?). They come back and their session has timed out. This means that the data that was gathered and placed in the session on previous forms is gone. The validator framework then complains about missing data from the previous pages. I just want to put up a special page indicating that they took too long to register. I need this same basic session in a number of places, so I really need a general solution. Any ideas? Dean Hoover --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]