I am getting problem in session management In my application Like if i logged in with two different users and At the time of Log out I invalidate the Session But My always first user is log out while i am doing log out the Second user.I am Using URL rewriting technique.
So sir Tell me 2 Things
1- In My Application I have Lot of Hyperlink At Right and Left Navigation of the Logged in User .So i have to Pass The Some parameter Through Each and Every Hyper Link So that Application Server recognize that the Request Come From The Same user??
2-I am Doing at the login time "request.getsession(true); session.setAttribute("username",username); And the Time of Log Out I am doing "session.removeAttribute("username");session.invalidate()"
So What i have to pass from the each and every Link to maintain the session By the User??? and how??
1. IF you are using URL rewriting, THEN all URLs must be rewritten in order to maintain identity.
2. session.invalidate() removes all linked references, no need to removeAttribute()
Are you trying to log in as two different users in the same browser instance?
posted 5 years ago
I am doing open By two Different Browser and i am Using WebSphere Application Server So please Tell me How Can I use URL Rewriting In My application and What should I have to pass From each and Every Link Or No need Such Type of Things The Application server will handle itself.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database