aspose file tools*
The moose likes Struts and the fly likes Multiple User Sessions getting Mixed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple User Sessions getting Mixed " Watch "Multiple User Sessions getting Mixed " New topic
Author

Multiple User Sessions getting Mixed

san
Greenhorn

Joined: Feb 08, 2005
Posts: 9
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.
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
make sure that all local variables are declared INSIDE the execute method of your action. also, if you manipulate cookies to obtain information, testing browser sessions should be done on different computers, not simply by openning another browser.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
san
Greenhorn

Joined: Feb 08, 2005
Posts: 9
all local variables are declared INSIDE the execute method of action class still
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
hi san

are u sure that the second window is not opened either by suing Ctrl-N button because that will have the same sessio as the old one even though logged in user might be diff

and if u havent used instance variables in ur action class .dont know might be some problem with ur code

The above 2 are the only valid reasons for data inconsistancy
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Originally posted by san:
all local variables are declared INSIDE the execute method of action class still


"san",

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple User Sessions getting Mixed