RE: [PHP] check if user session exists
| From: | Larry Brown | Date: | Mon, 09 Feb 2004 20:13:51 +0000 |
| Subject: | RE: [PHP] check if user session exists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177233@lists.php.net to get a copy of this message | ||
I don't know of a function, but you could possibly read the directory where
the SID files are stored. I use sessions a lot; however, I've not tried to
accomplish this. I don't know if by default you can read the SID directory
from a script or if this is blocked for security reasons or not. If not,
you could read the directory, match the SIDs from your list and go from
there. There is no way of knowing if the person is still actively using the
SID this way though.
Larry.
-----Original Message-----
From: Christian Calloway [mailto:callowaylc@yahoo.com]
Sent: Monday, February 09, 2004 9:28 AM
To: php-general@lists.php.net
Subject: [PHP] check if user session exists
Given a set of session id's, is it possible to query whether a given session
exists. I am not talking about the current user session, instead I am
referring to any and all possible user sessions currently in play. For
example:
if (session_exists($sessionId)) doSomething();
I've been looking very hard for this one and haven't found an answer at all.
Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php