Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Online visitors visible

Status
Not open for further replies.

Hoefie

Technical User
May 31, 2002
11
0
0
NL
For a portal am looking for something. Since I am a php newbie, could you please explain how i can display the users currently logged in. This will be helpful for me to see who to contact, in case i need to ask them something. Have seen this on different pages on the internet already, so this should be possible.

but only... how?

Any feedback is much apreciated
 
When a user logs into the db, via cookie or login, then add the user to a db table. Read in the db table to get your list of users...

Bastien

Cat, the other other white meat
 
remember to have some sort of timeout field in the database, then you make your script delete WHERE it has timed out..

look at mysql.org -> time functions..
then you have some, I dont know, maybe 5 minute timeout?
very simple really!

btw. you need to get the remote_addr, but I guess you know that.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top