Re: Finding current PHP sessions
| From: | Richard Lynch | Date: | Sat, 14 May 2005 06:32:47 +0000 |
| Subject: | Re: Finding current PHP sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215207@lists.php.net to get a copy of this message | ||
On Fri, May 13, 2005 1:01 am, Bogdan Stancescu said:
> I know I could read the session files themselves, but I'd very much
> rather use a "proper" way to retrieve the active sessions, which would
> work with alternate methods of storing session data, if there is any
> such proper way to do this.
Reading the filenames is perfectly good for what you want for the default
built-in sessions -- If the session file is gone, it's pretty much gone,
eh?
If somebody is doing custom session handling, then they have their own
function for deleting a session and handling gc, and you just need to make
it easy for them to call YOUR session data destroy routines.
--
Like Music?
http://l-i-e.com/artists.htm