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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to