http_session start problem

From: Date: Thu, 24 Jul 2003 16:56:46 +0000
Subject: http_session start problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6796@lists.php.net to get a copy of this message
hello, I´m trying to use http_session, so I have created a table 'SESSION' with columns id, expiry, data of the types specified in sessiondata.sql of docs/, with id varchar (32) for md5 $session = new HTTP_Session; $session->setContainer('DB', array('dsn' => $dsnMlecturaSessio, 'table' => 'SESSION')); $session->useCookies(true); $session->start('SessionID'); it seems it goes through setContainer correctly, but it can´t with start. The message I see is: Fatal error: Call to a member function on a non-object in c:\php\pear\pear\HTTP\Session\Container\DB.php on line 176 where : function read($id) { $query = sprintf("SELECT data FROM %s WHERE id = %s AND expiry >= %d", $this->options['table'], 176: $this->db->quote(md5($id)), time() ); if I open the table SESSION, I can see it´s empty, so it hasn´t written the new session (it has all grants) any help? thanks in advance gema

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