note 10651 rejected and deleted from session_register by zak

From: Date: Mon, 15 Jan 2001 23:18:25 +0000
Subject: note 10651 rejected and deleted from session_register by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9821@lists.php.net to get a copy of this message
I'm getting crazy with this function : I'm trying (and in fact it seems to work fine) to register a connection id to a postgres database : // the followig instruction works fine and $cnx_id // gets a value (it is not null) $cnx_id = pg_connect ("host= blah blah..."); session_register('cnx_id'); And when I try "session_is_registered('cnx_id');", I get TRUE (which is what I want), but unfortunately, $cnx_id is null in every other script... Does anybody know about this ? NB : the very same code works fine if for example $cnx_id is a string ($cnx_id = "test";)

« previous php.notes (#9821) next »