JSF - Session Bean restart on logout and login

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-05-02T10:42:19Z Indexed on 2010/05/02 10:47 UTC
Read the original article Hit count: 242

Filed under:
|
|

Hi,

I have a web application with a backing bean which has the context of the current logged in user. It is implemented on JSF.

When the user logs out he is forwarded to a login screen (in another JSP page). I would like the current session to be erased when that happens and a new one to be created the next time the user logs in and enters the application.

My question is - how do you delete a session? (I guess the new session will be created automatically the next time the user enters the link)

This is kinda newb i guess, but I couldn't find a solution for this. Thanks for the Help!

© Stack Overflow or respective owner

Related posts about jsf

Related posts about jsp