Re: check if user session exists

From: Date: Mon, 09 Feb 2004 15:24:29 +0000
Subject: Re: check if user session exists
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-177235@lists.php.net to get a copy of this message
Yeah thats pretty much what I have concluded. I was absolutely sure there would be a way to check if a session was still active, but I guess not :-(. Thanks though Christian "Larry Brown" <larry.brown@dimensionnetworks.com> wrote in message news:CBECIONKKLMDDCIKHALJCEEIKDAA.larry.brown@dimensionnetworks.com... > 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

« previous php.general (#177235) next »