|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-15 17:27 UTC] sniper@php.net
[2001-06-27 00:31 UTC] danbeck@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
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.