how to check if user is on the website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Milan
Forum Commoner
Posts: 97
Joined: Wed May 17, 2006 6:08 pm

how to check if user is on the website

Post by Milan »

I have a user profile page where i would like to display if user is on the website or not.
I know i have to check for session ID but i still have no concept how to incorporate this.

Anyone with a suggestion?

thanks!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

without incorporating something like ajax, the only way to make this determination is by the last time they hit a page.

that's why most systems that do this (phpBB being one of them) report users within the last x minutes.
Post Reply