struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From debussy007 <debussy...@gmail.com>
Subject Problem with forward mapping when I invalidate the session
Date Wed, 22 Aug 2007 13:53:45 GMT

Hi,

My web application allows a user to authenticate via a database.
When he submits his username and password, the request goes to the
AuthentificationAction.

In this action, I want to clean the session if he already had something in
the session
(e.g. he connected with a username and then he wants to connect with another
one -> need to clean the session which he used with the first username)

if(request.getSession().getAttribute(PLConstants.IS_AUTH) != null) 
          request.getSession().invalidate();

The problem is that when I am in such a case (if the user had already
something in session and tries to connect with another user), I invalidate
the session but then when I try to forward: 

return mapping.findForward("isKnown");

I stay in the authentication page. The URL has change though and if I press
F5 I enter the main page.

Can anyone help me with this error ?

Thank you for any help !
-- 
View this message in context: http://www.nabble.com/Problem-with-forward-mapping-when-I-invalidate-the-session-tf4311774.html#a12275199
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message