Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I detect when user logs off

Status
Not open for further replies.

aplusc

Programmer
Feb 17, 2002
44
US
I have a secure application with a "log off" button. It redirects users to another page (i.e. "you are logged out"). This is how I detect when the people log off/log in and store it in a log .txt file.

Unfortunatelly very few people actually use the "log off" button. They probably just close their browser. How can I detect when they do that?

Preferably, is it possible to do this WITHOUT editing the global.asp file?

Thanks for your help.
 
Opps, I mean the "global.asa" file :)
 
<%
If IsClientConnect <> True then
'The user is not connected
'Do whatever
Else
'Client is connected
'Do whatever
End if
%>


 
Thanks .. that might work, but how can the user execute that code if he is not connected any longer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top