Forums

This topic is locked

Code for checking online/offline status...

Posted 13 Jun 2007 21:46:44
1
has voted
13 Jun 2007 21:46:44 Gabriel G posted:
Greetings noobs and gurus (and all those in between and beyond)!

First of all, thank you to everyone who's read and who's posted a response to my previous inquiries. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Now for my next question...

I'm working on a server supported website (ASP VBScript) which has multiple login accounts and am trying to find a way to maintain and display the status of these accounts (status meaning their online/offline status, like the instant messengers use). I have no idea where to begin with this or if it can be tested without actually connecting to the server. Something I considered was to write a javascript function and use the "onload" property. If anyone has a better idea, or if this is the best one, please let me know. Thanx again and keep weaving that tangled web.

Replies

Replied 14 Jun 2007 08:53:52
14 Jun 2007 08:53:52 Alan C replied:
I suggest a database table in which you record the ip address of each visitor as they login, then remove after they logout or a timeout period expires. You would put their login name in the table too - there's a useful example that does this with all the code at evolt.org look at the links on the left-hand side that says php login system


You can then pick the code apart

Reply to this topic