Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in session managment

 
naval kumar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
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??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Bill
 
naval kumar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic