Search the Community
Showing results for tags 'sessionhandlerdb'.
-
Session Info Lists information about active sessions in a similar way to SessionHandlerDB, but for file-based sessions. Only install the module if you are not already using SessionHandlerDB. Installation 1. If you want to be able to see the pages that are being viewed by active sessions then set... $config->sessionHistory = 1; ...in /site/config.php If you have already set $config->sessionHistory to a higher number then you can leave it unchanged: 1 is the minimum needed for use in the Session Info module. 2. Install the Session Info module. A helper module named "Session Extras" will be automatically installed also. 3. If you want to be able to see the IP address and/or user agent for active sessions then visit the module config page for Session Extras and tick the relevant checkboxes. 4. You can now view information about active sessions at Access > Sessions. Screenshots With $config->sessionHistory set to 1 or higher: Additional information is listed when IP address and user agent tracking are enabled in Session Extras: https://github.com/Toutouwai/ProcessSessionInfo https://processwire.com/modules/process-session-info/
-
Hello all, I'm making a dashboard kind of a thing for online ticket booking website. For that I need a list of all the users who are online and if possible, I need to see which page they are on. I don't know how can I do it. I tried a simple code like this: $users_list = $users->find(); foreach ($users_list as $u) { if ($u->isLoggedin()) { echo $u->name." is Logged in.<br/>"; } } Which outputs list of all the users and shows all them online, which is obviously impossible as I'm running this on localhost. So how do I do it? p.s.: The logic in code is very wrong, now when I think about it, I know this is not the code I need.
-
Hello all, I've installed sessionhandlerdb to check active sessions on website. I first tried it on my local machine & it worked flawlessly, but on my server it's just not showing anything. I tried to keep some sessions open for more than 10 minutes still it shows nothing. Can anyone tell me what's wrong?