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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session_OnEnd

Status
Not open for further replies.

Verbetex

Programmer
Apr 18, 2002
18
0
0
GB
I'm trying to keep a list of currently logged in users in a database table.

When people log in, it adds them fine, but when they close the browser, I want to remove them from this table.

Am I right that the Session_OnEnd method in Global.asa is run when the browser is closed?

If so I was running my script to remove them in that segment using the Session("username") property in my SQL statement, however, it does not remove them. Is this because in the Session_OnEnd method, the Session("username") or similar are cleared at the beginning and so Session("username") is empty when I use it?

Can anyone offer some suggestions for my problem?

TIA
 
As far as I am awar, user sessions are not terminated when the browser is closed. They end when the Session.TimeOut value has expired. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top