Sessions and pg_connect

From: Date: Mon, 31 Jul 2000 11:24:11 +0000
Subject: Sessions and pg_connect
Groups: php.general 
Request: Send a blank email to php-general+get-9143@lists.php.net to get a copy of this message
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 ? Ovidiu EFTIMIE

« previous php.general (#9143) next »