This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP SESSION MANAGEMENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP SESSION MANAGEMENT" Watch "JSP SESSION MANAGEMENT" New topic
Author

JSP SESSION MANAGEMENT

Mahesh Eshwarappa
Greenhorn

Joined: Jan 04, 2001
Posts: 28
HI,
We have hosted an internet application lately. We have run into session problems. THe session of one user(client) is getting transferred to some other user(client).
Iam setting the session in the first page with an user id saying session.put(userid,somevalue)
And i check in each page whether this is the correct value.
Somehow the session id of one user is getting transferred to 2 to 3 users. Websphere is our JSP server.
Can anybody help on this....
Thanks,
Mahesh
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Mahesh,
HOw did you test? By 'Somehow the session id of one user is getting transferred to 2 to 3 users' , do you mean, one user is able to see other user related data which are put in session?
If so it could be static/instance vars problem of servlets. If you want each user to have unique session data, those session objects must be local vars inside doGet or doPost in case of Servlet, NOT instance or static vars, since static and instance vars are shared between all user requests.
In case of JSP, they must be declared within <% %> tags NOT within <%! %> tags.
regds
maha anna
[This message has been edited by maha anna (edited March 26, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP SESSION MANAGEMENT
 
Similar Threads
Web Sphere SESSION MANAGEMENT
Retaining form data Urgent please....
Session problem
cookies in JSP
EJB3 Doubts