I have Logon.java which extends the PageCodeBase class
for security reason,whenever the user logon to the application i want to invalidate the existing session and create a new session in my managed bean class Logon.java.
how can i do this ? please help me.
g madhava
Ranch Hand
Joined: Sep 14, 2001
Posts: 85
posted
0
Actually it's not you who is creating that code. I believe that code is being created by IBM's RAD.
The simplistic way of acheiving this is to wrap a Filter around the Faces servlet. Check for the URL, and if it's login page, then invalidate the existing session and create a new session.
Chris Schalk
author
Ranch Hand
Joined: Aug 31, 2006
Posts: 62
posted
0
In a generic sense here is how to invalidate a session from Faces: