Hi,
You could insert a 'inSession' cookie in the Login, and remove the cookie in Logout. If you receive a request from a user without a valid session, check if the 'inSession' cookie is present and, if is true, redirect to an ExpiredSession warning page. If you want do some cleaning activity in the event of session expiration check the interface HttpSessionBindingListener. Rodrigo C. Santos. BCP Telecom -----Mensagem original----- De: Max Cooper [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de março de 2003 21:25 Para: Struts Users Mailing List Assunto: Re: Trapping timeout of HttpSession If their session expired, it is gone. The form submittal will generally look like it is from a new visitor that had no session. What do you want to do in the case that the user submits a form and their session had expired? I think you might be able to make a good guess if they used to have a session but it expired, but it might not be worth the trouble if knowing that information doesn't really acheive anything useful for your situation. -Max ----- Original Message ----- From: "Rick Ashley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 11:57 AM Subject: Trapping timeout of HttpSession > Hello, > > What is the best place to check if user's HttpSession has expired? > I mean situation where e.g. timeout of Web application is 30 minutes > and after that user tries to submit a form. > > Is it ok to check it e.g. in RequestProcessor or somewhere else and how? > > Anyone have a sample code? > > Br > > r a > > > > > > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger today! > http://messenger.msn.co.uk > > > --------------------------------------------------------------------- > 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] ***** Internet E-mail Confidentiality Footer ***** "Esta mensagem pode conter informações privilegiadas e/ou confidenciais. Caso voce não seja o destinatário ou pessoa autorizada a recebe-la não poderá utiliza-la de forma alguma. Cópia, revelação ou quaisquer outras ações baseadas nestas informações não são autorizadas. Se voce recebeu esta mensagem de forma equivocada, por favor informe o emissor imediatamente respondendo a este email e em seguida eliminando-o. Agradecemos sua cooperação." "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]