Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses.
I have a user Object that I could put in the session at Login Time. But I think that when that object is not in the session, It's not exactly as the session has expired. For me, a session has expired when the session timout is reached. Then all object that have been put in the session are not longer valid. My need is to test the validity of the session . We could get that with the HttpServletRequest.isRequestedSessionIdValid() method. meissa Shahak Nagiel <[EMAIL PROTECTED]> 09/05/2007 17:59 Veuillez répondre à "Struts Users Mailing List" <user@struts.apache.org> A Struts Users Mailing List <user@struts.apache.org> cc Objet Re: Session Expiration Handling I've implemented a similar authenticator (which I called AuthenticationInterceptor, since it's verifying the user has been authenticated). The easiest way to handle this is to simply put some object in the HttpSession once the user is authenticated at login time, such as a User object. If that object isn't in session, you can assume either they haven't yet logged on or the session has expired (which are both really the same scenario anyway). ----- Original Message ---- From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wednesday, May 9, 2007 11:14:20 AM Subject: Session Expiration Handling Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I would like to write an Interceptor that will handle the session expiration. If somone has already written something like that, thanks to tell me how. If not here is my idea. my interceptor will retrieve the session. A private method will tell me if the session is still valid. here is an extract: public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); if(isSessionExpired(session)) { return Constants.SESSION_EXPIRED_ACTION; } else { return invocation.invoke(); } } private boolean isSessionExpired(Map session) { return true; } When I put an object in the session (in the first action that is called for example), is there a way to test if the session is still valid ? any help is greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.