Re: Trap BrowserClose event so can Logout Session
- From: Peter Bromberg [C# MVP] <pbromberg@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Nov 2007 12:22:03 -0800
I suppose you could store the remote IP Address of the machine when they
first log in (you could store it in Cache with a key that matches the
username).
So if you look at the UserHostAddress inside Application_AuthenticateRequest
and compare, that would be one way to do it.
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"Ron J" wrote:
Thanks Mark. Fair enough. Perhaps you can suggest another way to do this:.
User logs in at one station.
They move to another station and want to login.
We don't want concurrent logins from different stations.
-how do I logout the first one? I know timeout but thats 20minutes.
"Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:OwnNPY%23HIHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
"Ron J" <rjohnson@xxxxxxxxxxxx> wrote in message
news:eLmmZy9HIHA.4296@xxxxxxxxxxxxxxxxxxxxxxx
How can I trap the user just closing the browser (upper right [x])
You can't.
This question comes up regularly - there are usually several suggestions,
mainly centering around the onunload event of the <body> tag - none of
them even half works.
Don't waste any time on this - it isn't possible, otherwise every website
in the world would be doing it...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
- References:
- Trap BrowserClose event so can Logout Session
- From: Ron J
- Re: Trap BrowserClose event so can Logout Session
- From: Mark Rae [MVP]
- Re: Trap BrowserClose event so can Logout Session
- From: Ron J
- Trap BrowserClose event so can Logout Session
- Prev by Date: Re: can I send e-mail by using hotmail and ASP.NET?
- Next by Date: JavaScript and ASP.NET web components properties
- Previous by thread: Re: Trap BrowserClose event so can Logout Session
- Next by thread: Re: Cached pages?
- Index(es):
Relevant Pages
|