Re: Is Session Always Cleared?
- From: Hans Kesting <news.hansdk@xxxxxxxxxxxxxxx>
- Date: Thu, 25 Sep 2008 17:37:45 +0200
on 25-9-2008, Jonathan Wood supposed :
Hans,
What exactly do you mean by "multiple users logging in from the same computer"?
I'm sorry. It's hard to know how to better state it than that. Unless you clarify which part is unclear.
I gave some possibilities below
If there is just one user at a time then there shouldn't be a problem.
If the first user closes his browser after he is finished, the session cookie is forgotten. A new browser instance will use a new session.
When the first user logs out, you can destroy the session server side (Session.Abandon).
Well, I don't know if it's a given that the browser was closed in between. But even if it was, the cookie could remain after the browser is closed. However, what if any data remains from that cookie is something I don't know.
The session cookie has no expiry-date so the browser treats it as a temporary cookie. It does not get stored and disappears as soon as the browser is closed.
However, two users at *the same time* from the same computer could lead to problems. The various browser windows could use the same cookie set. So when a second user opens a new window, he could be automatically using the session of the first user.
No, I'm not considering the possibility that multiple users were logging on to the site one the same computer at the same time.
I think that firefox uses the same cookieset for all it's windows. For IE it depends on how the new window is started.
In fact, the case where I have the most information about the problem (which isn't much) is specifically on FireFox. But I still don't see how this could be an issue.
A guess: the first user did not log out and did not close his browser window, but minimised it. The second user thought he started a fresh instance of the browser but got a new window of the first instance, with the session cookie (and thus the session) of the first user.
Thanks.
Jonathan
.
- Follow-Ups:
- Re: Is Session Always Cleared?
- From: Jonathan Wood
- Re: Is Session Always Cleared?
- References:
- Is Session Always Cleared?
- From: Jonathan Wood
- Re: Is Session Always Cleared?
- From: Cowboy \(Gregory A. Beamer\)
- Re: Is Session Always Cleared?
- From: Jonathan Wood
- Re: Is Session Always Cleared?
- From: Hans Kesting
- Re: Is Session Always Cleared?
- From: Jonathan Wood
- Is Session Always Cleared?
- Prev by Date: Re: Simple LINQ problem
- Next by Date: RE: Server Renaming Form Fields
- Previous by thread: Re: Is Session Always Cleared?
- Next by thread: Re: Is Session Always Cleared?
- Index(es):
Relevant Pages
|