• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession problem

 
nippon ask
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm having a problem with HttpSessions. I created this servlet where i store in the user's session ( request.getSession() ) all the data selected by the user, manipulate it, and then store it again ( session.setAttribute() ).
There are times when, while one user is working on his session , on his pc , with his own SessionId (not modified since login), this user notices that he has Objects from other users in his session.
The servlet doesn't have any instance variable, only local ones. The servlet it's quite large but it only does the logic part, and then forward himself to the JSP that creates the GUI.
This runs over Websphere on a Sun Solaris.
Is this possible??? What can be wrong?
Thanks
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sessions should exist one per user. Any chance you have member variables getting shared between threads in your servlet? Static variables or singletons in the data you are storing?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!