Hi
You would want to do something like this in your login file
After verification and session is loaded with user info
Application("To talConnected") += 1
Application("Us erNames") &= username & "," ' you need a delimiter to be
able to split later on
Then to display this info, simply split the Application("Us erNames") on ','
and you'll have a list. Don't forget to include the removal of their names
at log off:
In global.asax do something like this
On SessionEnd()
Application("To talConnected") -= 1
Application("Us erNames") =
replace(Applica tion("UserNames "),session("use rname") & ",", "") ' or
something like that
NOTE: The session end will fire when you call a session.abandon in your
logout scripts, however if a user just closes their browser, I beleive it
will take 20 minutes, or whatever the timeout is set to on the server, for
the session to expire. At this point I do not know if it will fire the
SessionEnd function. Can someone else input on this?
Enjoy!
David Lozzi
"Steph" <no_spam@no_spa m.org> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi,
I would like to be able to know who is actually connected on the website i
am creating.
The users are stored in a sql server table (to enter, they have to be
identified on the login.aspx page...)
I guess i have to use application variables and global.asax, but i don't
know exactly how to do this...
Thanks !