Diane Schips on Tuesday, August 26, 2003 3:02 PM said:
: I'm making progress on my chat room, but now I have another
: question. Along one side of the page, I have a list of the
: people currently logged on. In a perfect world, every user who
: leaves the site would click the "exit" button, keeping g the
: logged on list current. Since we're not in a perfect world, how
: can I tell is a user is logged on? Or better yet, can I execute
: any code after File|Close have been clicked, or when the 'X' is
: clicked?
:
: Diane
Diane,
It sounds like you are tracking log on status via a boolean value in the database.
If I may suggest, keep track of their log on status in the session variable:
Session.Contents("logon") = "true"
this makes it a bit easier as the session automatically expires after a default time
of 20 minutes, or as soon as the user closes their browser, whichever comes first.
hth,
Stephen Caudill
http://www.mechavox.com
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]