Re: Trap BrowserClose event so can Logout Session



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



.



Relevant Pages

  • RE: Store Added Value List Items
    ... station to station. ... Property set to a Combo Box and The Row Source Type set to Value List. ... When users in my database want to add a new customer they select the button ... random set of choices for the user to store for this particular field in the ...
    (microsoft.public.access.formscoding)
  • Re: Soccer Mom drivers
    ... I'll tell you how stupid drivers are in Las Vegas. ... the store at the gasoline station I was unloading at. ... inside the car. ...
    (misc.transport.trucking)
  • Newbie: Need advice with database manipulation decision
    ... I created a small application that is supposed to manipulate meteorological ... save them in a text file to be imported later into Excel. ... Scan through all the data from a specific station and through Date/Time ... therefore store the data locally. ...
    (microsoft.public.dotnet.languages.vb)
  • Newbie: Need advice with database manipulation decision
    ... I created a small application that is supposed to manipulate meteorological ... save them in a text file to be imported later into Excel. ... Scan through all the data from a specific station and through Date/Time ... therefore store the data locally. ...
    (microsoft.public.dotnet.framework.adonet)