rantsh Posted January 17, 2007 Share Posted January 17, 2007 Hello everyone, I'm looking for a snippet or a class or a tutorial or something that allows me to know which and how many users are logged in my php-based system.Does anyone know where I could find some info on this?Thanks,Roderick[b]edit by redbullmarky[/b]: advertisement removed. please read the [url=http://www.phpfreaks.com/forums/index.php/topic,6264.0.html]forum guidelines[/url] with regards to advertising... Link to comment https://forums.phpfreaks.com/topic/34607-presence-on-a-php-based-system/ Share on other sites More sharing options...
Jessica Posted January 17, 2007 Share Posted January 17, 2007 Whenever they view a page, save the time in a row in your user table. Then you can extrapolate who was logged in when, and see users logged in in the past 10 minutes, etc. Link to comment https://forums.phpfreaks.com/topic/34607-presence-on-a-php-based-system/#findComment-163028 Share on other sites More sharing options...
rantsh Posted January 17, 2007 Author Share Posted January 17, 2007 I had thought of that one, but, wouldn't it overload my server?.I know the web is stateless but, is there a way I can do this by reading the session file (wherever it's located in the server) or something like that. That way I can have a more accurate, real-time [kind-of] result.Thanks anyway, I'll start implementing this and see how it turns out. Link to comment https://forums.phpfreaks.com/topic/34607-presence-on-a-php-based-system/#findComment-163034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.