Re: End of session clean-up

From: Date: Fri, 09 Dec 2011 16:14:29 +0000
Subject: Re: End of session clean-up
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-315964@lists.php.net to get a copy of this message
On 2011-12-03 18:14 +0000, Stuart Dallas wrote: > Writing a session handler is pretty straightforward. I wrote > about how to implement one to use MySQL a while back which I'm > sure you could easily adapt to your needs. > > http://stut.net/2008/07/20/mysql-sessions/ Thank you. That's too much code for the amount of time I had, though. So I just added the purging of old records to the code that creates them. It's not ideal in that old records remain until someone opens a new session. But it's quicker and safer than writing a whole session handler. -- André Majorel http://www.teaser.fr/~amajorel/

« previous php.general (#315964) next »