Date: 01/15/01
- Next message: Bill McCaffrey: "[PHP-DEV] Hanging process"
- Previous message: jlfranzen <email protected>: "[PHP-DEV] PHP 4.0 Bug #8718: unexpected Network Error can't display document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: apere <email protected>
Operating system: Linux Mandrake 7.2
PHP version: 4.0.4
PHP Bug Type: *Session related
Bug description: session variable not working
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 (even in another script, 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";) instead of this database thing.
-- Edit Bug report at: http://bugs.php.net/?id=8719&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bill McCaffrey: "[PHP-DEV] Hanging process"
- Previous message: jlfranzen <email protected>: "[PHP-DEV] PHP 4.0 Bug #8718: unexpected Network Error can't display document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

