alin19 Posted September 22, 2008 Share Posted September 22, 2008 i have a page that usses $_SESSION to check clients login, now i'm trying to see which clients are loged in, i have made a script that when i client log in it is inserted in a data base table, but i don't know how to make the check if he is still on that page. Quote Link to comment https://forums.phpfreaks.com/topic/125284-counting-clients/ Share on other sites More sharing options...
JonnoTheDev Posted September 22, 2008 Share Posted September 22, 2008 You also need to store the referer page, probably the last click time and the time of login. Also remove any entries in you table for sessions that have expired. Quote Link to comment https://forums.phpfreaks.com/topic/125284-counting-clients/#findComment-647617 Share on other sites More sharing options...
gaza165 Posted September 22, 2008 Share Posted September 22, 2008 i would have another table called e.g. active_users and like neil said use timestamps and time of login and update the table accordingly... Quote Link to comment https://forums.phpfreaks.com/topic/125284-counting-clients/#findComment-647618 Share on other sites More sharing options...
JonnoTheDev Posted September 22, 2008 Share Posted September 22, 2008 OsCommerce 2.2 has a who's online module. Download the source code and extract this portion. http://www.oscommerce.com Quote Link to comment https://forums.phpfreaks.com/topic/125284-counting-clients/#findComment-647620 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.