note 10651 added to session_register

From: Date: Mon, 15 Jan 2001 18:09:50 +0000
Subject: note 10651 added to session_register
Groups: php.notes 
Request: Send a blank email to php-notes+get-9813@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";) http://www.php.net/manual/en/function.session-register.php

« previous php.notes (#9813) next »