Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple User Sessions getting Mixed - Please help

 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
We have developed an web application that is accessed by multiple users (say 1000) concurrently. It is developed using struts framework and entire session tracking is done using HttpSession object. Now the problem is -
- the application is opened in two sepearte browser instances on the same machine.
- Two different userIds are used to log in.
- After continuously working within two application, some times the user data is inter-mixed; i.e. values specific to say user1 starts getting displayed for user2 or vice-a-versa.
This behavior is random. And it can never be reproduced on internet explorer version 5.5. Only when version 6.0 is used, things start getting mixed. There are no cookies used by the application to store user speciifc data? only Httpsession object is used for user's session tracking. So how does these seperate sessions get intermixed? or is the problem with the browser version? Does struts framework mention some cookies for its own purpose and those cookies are causing problem?
Have anybody encountered such problem?
Can anybody please help? Any help would be highly appreciated.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed that when you open a browser window, and then open a second browser window by typing CTRL-N (or File->New->Window), the same session will be used in both windows. If however you open your second browser by clicking the "Launch Internet Explorer" icon in your start menu or on your desktop, then you can maintain two separate sessions.
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem might boil down to three reasons:
1) One which Jason already mentioned
2) You are using thread unsafe variables in Servlet, Action or JSP
3) You are having Thread race condtions
When you resolve this, can you please post back. I would be interested in knowing.
-Srikanth Shenoy
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) One which Jason already mentioned
> No its not the browser instance opened by Ctrl+N. It's a new browser instance.
And as i said it is encountered only on IE6.0 and not on IE5.5. So problem of unsafe instace variables should come in picture even on IE5.5 , if at all that is causing the problem. I think, it is something to do with the way cookies are manages by IE5.5 and 6.0. As session management is done using cookies. and i feel, these session related cookies are getting mixed up in IE6.0.
I am yet to solve this problem though....

[ February 29, 2004: Message edited by: Rashmi Tambe ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic