Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Active users with a DB?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active users with a DB?

 Post Reply Post Reply
Author
adnan248999 View Drop Down
Newbie
Newbie
Avatar

Joined: 30 November 2003
Location: United Kingdom
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote adnan248999 Quote  Post ReplyReply Direct Link To This Post Topic: Active users with a DB?
    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?

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
adnan248999 View Drop Down
Newbie
Newbie
Avatar

Joined: 30 November 2003
Location: United Kingdom
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote adnan248999 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.