p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_howto thread: How do I? names of users

Message #1 by "Gary Thickett" <gary.thickett@m...> on Thu, 8 Mar 2001 12:24:30
and you will probably need some sort of date/time value to store thier 
"last hit" in case they exit the browser, and the session_onend doesnt fire

i usually keep that info in the DB, just because of the potential large 
amounts of info, and the ease of use of SQL to remove the old and list the 
current sessions

At 08:17 AM 3/8/01, you wrote:
>you could store the names in an array in the application object
>add the name in session_onstart, remove it in session_onend
>same goes if you were storing names in a database table too
>-----Original Message-----
>From: Gary Thickett [mailto:gary.thickett@m...]
>Sent: Thursday, March 08, 2001 9:02 PM
>To: How To
>Subject: How do I? names of users
>I am building a forum using ASP and I want to add a feature that will show
>the names of users that are currently logged into the site. At the mo I
>just have so you can see the number of users currently online. I
>understand that one way of doing it is adding the usernames to a database
>table when they login but i'm not sure how to go about removing them from
>the list if they don't logout.
>Any help on this would be appreciated

Robert Chartier
Author, AspFree.com

  Return to Index