Re: Sessions and pg_connect

From: Date: Mon, 31 Jul 2000 13:35:12 +0000
Subject: Re: Sessions and pg_connect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9158@lists.php.net to get a copy of this message
On Mon, 31 Jul 2000, Ovidiu EFTIMIE wrote: > I'm using PostreSql as an backend database. > While I was trying to use sessions I've discovered this strange behaviour > When I'am using the following snipet I cannot make sessions work. The > session file is created but it has a zero lenght. > > //---------sec.php---------------// > session_start(); > print($counter); > $counter++; > session_register("counter"); > //--------end sec.php------------// > > > If I'am adding an pg_connect call to a local database I'am able to use > sessions. > //---------sec2.php---------------// > $con=pg_connect("host=localhost dbname=d4a user=root"); > session_start(); > print($counter); > $counter++; > session_register("counter"); > //--------end sec2.php------------// > > Any one has any ideea why this behavoiur occured ? Because of a recently fixed bug. Please use a snapshot until PHP 4.0.2 gets released: http://snaps.php.net - Sascha

« previous php.general (#9158) next »