Re: Session data getting corrupted.
From: hiwa (HGA03630_at_nifty.ne.jp)
Date: 01/26/04
- Next message: hiwa: "Re: Strange behavior of a java.util.Vector"
- Previous message: Konrad Den Ende: "Re: Strange behavior of a java.util.Vector"
- In reply to: Shiv: "Session data getting corrupted."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Jan 2004 16:30:34 -0800
shivram.vempaty@db.com (Shiv) wrote in message news:<68e428f.0401250702.4ee7d5c3@posting.google.com>...
> I have a servlet driven web application using ServletExec 4.2 AS, IIS
> 4.0 as the platform. Some user data is stored is persisted in a user
> object at the beginning of the session which includes use rid, client id
> etc.
>
> There have been intermittent problems with the application, when for a
> split second, one user suddenly gets somebody elses data like name
> etc. As soon as the user refreshes the page the problem goes away.
>
> Initially we concluded that the sessions may be getting swapped,
> however on debugging we found that no such thing is happening and the
> session ids never get crossed. Our other approach was not to store
> anything in the user object associated with each session, rather get
> such information every time from data base(this may have a performance
> impact).
>
> Is it true that when a servlet is called the first time, the same
> instance services all other requests for the servlet?? i.e. at any
> given time there is one and only one instance of certain servlet
> running in the servlet container
> If the above is true, is it possible that the same servlet instance is
> swapping data from the user objects associated with different
> sessions??.
> How does the servlet resolve the context in a single threaded model??
>
> Can anybody shed light on any similar experience and possible
> resolutions of the same..
>
> Shiv
As a quick idea, I suspect that your HttpSession objects and/or
request related data are not synchronized, or, your servlet implements
SingleThreadModel ...
- Next message: hiwa: "Re: Strange behavior of a java.util.Vector"
- Previous message: Konrad Den Ende: "Re: Strange behavior of a java.util.Vector"
- In reply to: Shiv: "Session data getting corrupted."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|