Bug #8719 Updated: session variable not working
| From: | danbeck@php.net | Date: | Wed, 27 Jun 2001 04:31:07 +0000 |
| Subject: | Bug #8719 Updated: session variable not working | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58140@lists.php.net to get a copy of this message | ||
ID: 8719
Updated by: danbeck
Reported By: apere@agilitime.com
Old-Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Operating system:
PHP Version: 4.0.4
Assigned To:
Comments:
Added to session_register() documentation in latest cvs.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-15 17:27:01] sniper@php.net
It isn't currently possible to register resource variables into session.
This is actually a documentation problem as this isn't mentioned on
any of the session related documentation pages.
--Jani
---------------------------------------------------------------------------
[2001-01-15 13:14:16] apere@agilitime.com
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8719&edit=2