Print Page | Close Window

Active users with a DB?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7995
Printed Date: 28 March 2026 at 3:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Active users with a DB?
Posted By: adnan248999
Subject: Active users with a DB?
Date Posted: 10 December 2003 at 10:24pm

Is it possible to creat an active users list with a database for example. When the user enteres the site he or she is given a unique id then added into the database then upon leaving the site that user will be removed from the database table.

Any ideas?



-------------
They call me Bruce Lee



Replies:
Posted By: fernan82
Date Posted: 10 December 2003 at 10:58pm
You already got the idea... 

Just use the IP address as the unique id, you can use cookies too to keep track of the user, but either way it won't be 100% accurate as cookies can be blocked and some users connect thru proxy servers that change for each page..., when you add an user to the list record the time and date on a field, everytime the users loads a new page update the time, and everytime you add or update an user check for records older than 5 minutes and delete them. That's it.


-------------
FeRnAN
http://www.danasoft.com/">


Posted By: adnan248999
Date Posted: 11 December 2003 at 10:32pm

Originally posted by fernan82 fernan82 wrote:

You already got the idea... 

Just use the IP address as the unique id, you can use cookies too to keep track of the user.

 

Thanx so long as I know that's the right way to go about it oh and umm you might want to check out a forum i am coding I'm a n00b but the forum is getting there take a look at http://www.asp-scripting.tk - http://www.asp-scripting.tk



-------------
They call me Bruce Lee



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net