|
-
Mar 24th, 2002, 11:32 PM
#1
Thread Starter
Fanatic Member
who's there ?
how does the script work for this site (or any) for seeing who is currently logged in ? i'm sat thinking about it for quite some time now but cant figure it out. any clues ?
-
Mar 25th, 2002, 12:03 AM
#2
Addicted Member
well there be some database for the users and the messages so i would think that when you login you some how set a marker in the database. which will tell you who is online.
On Error wake up and try again ;-)
___________________________
ICQ # 65392645
email - [email protected]
Visual Studio 6 ent with SP5 Running on XP with an AMD 1.2 ThunderBird with 512 MB RAM And a 120GB primary HDD (very sweet)
-
Mar 25th, 2002, 10:24 AM
#3
correct, it also has session varialbe that work with that marker in the database.
-
Mar 25th, 2002, 07:14 PM
#4
Thread Starter
Fanatic Member
Originally posted by scoutt
correct, it also has session varialbe that work with that marker in the database.
u seem to know what your talking about scoutt, could u explain a bit more maybe ?
-
Mar 25th, 2002, 09:08 PM
#5
I'll try 
lets say you have a table in the database that is labeled "online" so when a user logs in a 1 will be put in the "online" table. so everytime someone loads the index page to what ever page you want it to show, it looks at that online table and finds all the "1" and then say user scoutt has a one so we check for a session variable and then say yup he is online. if the session variable is not there, then we say update the online table and put a 0 in there. and delete the session that is loaded in the table.
make sense?
-
Mar 26th, 2002, 05:42 AM
#6
Thread Starter
Fanatic Member
yeh, 100% sense; but the part i cant figure is how it knows that the person has left, does it have a timer or something so that if a user hasnt updated the "online table" then it changes the '1' to a '0' ??
-
Mar 26th, 2002, 10:34 AM
#7
well I'm not totally sure on that. I would have to research it to be 100% sure.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|