Re: how to see all sessions sets in server
| From: | Alessandro Pellizzari | Date: | Sun, 04 Aug 2013 10:13:03 +0000 |
| Subject: | Re: how to see all sessions sets in server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321783@lists.php.net to get a copy of this message | ||
Il Sun, 04 Aug 2013 13:32:55 +0430, Farzan Dalaee ha scritto:
> hi i want to write online user module for my site and i want to check
> $_SESSION['userID'] to find all users id who loged in but when i echo
> this code its return only current user detail how i can see all
> sessions?
You can't.
> or how i handle online users?
Every user has its session.
If you want to have a "super user" who has access to all the sessions,
you can use the filesystem functions to read the directory in which the
sessions get saved (it depends on the server configuration) or you can
implement a session handler to save all the sessions in the database, and
give access to that table to one user.
Bye.