struts-user mailing list archives

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


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

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) 

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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message