Re: HTTP_Session using DB

From: Date: Thu, 07 Apr 2005 21:34:06 +0000
Subject: Re: HTTP_Session using DB
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18636@lists.php.net to get a copy of this message
On 07/04/2005, at 11:28 PM, Torsten Roehr wrote:
Hi Dan, I've been using HTTP_Session with the DB container (MySQL) in lots of projects like this: HTTP_Session::useCookies(false); HTTP_Session::setContainer('DB', array('dsn' => $dsn, 'table' => TABLE_SESSIONS, 'autooptimize' => true)); HTTP_Session::start(SESSION_NAME); HTTP_Session::setExpire(SESSION_LIFETIME); Most times combined with LiveUser (read: let LiveUser do the idle/expire checks). It even works with session_regenerate_id(). One thing to look out for is that the value for HTTP_Session::setExpire() should not be 0 - this doesn't seem to work. What kind of problem do you have?
I'm not the one with problems ? :) How can you get HTTP_Session to do the session handling for LiveUser ?

« previous php.pear.general (#18636) next »