I have web app, and this is scenario
User is logging in.
Data is loaded from db added to Object (e.g)
class UserData
{
public string Name { get; set; }
}
and instance of this object is added into session, when user from another computer log in then his session is also applied to first user session. I know this because there is name displayed in header of app.
Server IIS7, ASP.NET 2.0 C#
I still can’t believe how this can be possible, but can’t find solution that is reason I’m asking.
Thanks in advance
There will probably be the need for more information.
Check if you do not store this user data in a static object. This object might be shared across sessions.
Do you see the first or the second/last person’s name (in the order of logging in) on your screen?
This might also be a case of output caching. Do you know how to trace or debug your webapplication? Can you verify the correct data is stored in the session?