• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

problem in session managment

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic