File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session Data Crossover Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Data Crossover Problem" Watch "Session Data Crossover Problem" New topic
Author

Session Data Crossover Problem

Panagiotis Varlagas
Ranch Hand

Joined: Nov 27, 2000
Posts: 233
I am experiencing a session data crossover issue (immediately after
logging on to the application, user A views the session data of user
B). I have investigated the issue up to a particular point - by also
adding some pertinent logging to the application - and it appears
that, while the session is correctly populated with the user data and
the servlet/POJO level, *after forwarding to the JSP, the JSP grabs a
wrong session....* ??

Please note that this is an application that run for four (4) years
now in production, and the problem starting occurring without any
change is the session management code of the app... Could it be a
caching issue? It happen non-deterministically to *some* users...


The relevant code snippets are as follows:


[ May 25, 2007: Message edited by: Bear Bibeault ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You have omitted important information from your servlet. Does the ControllerServlet maintain state ie does it have any instance variables? If so, those variables are getting shared between requests and must be removed.
 
Don't get me started about those stupid light bulbs.
 
subject: Session Data Crossover Problem
 
Similar Threads
Thread safe Struts Action
Session Data Crossover Problem... Please help... Thanks!
Sudden Logout Problem - Related to Concurrency?
SOS--------display data collection from database
help help help SOS