Doc #8719 [Com]: session variable not working

From: Date: Wed, 01 Sep 2021 18:37:24 +0000
Subject: Doc #8719 [Com]: session variable not working
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19143@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=8719&edit=1 ID: 8719 Comment by: lildurk8719 at gmail dot com Reported by: apere at agilitime dot com Summary: session variable not working Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Linux Mandrake 7.2 PHP Version: 4.0.4 Block user comment: N Private report: N New Comment: Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults aged 19 and older. We’re an exclusively online retailer and wholesaler for recreational cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe our work is meaningful and we take pride in our mandate to promote the socially responsible use of legal cannabis. https://lildurk.com/ Previous Comments: ------------------------------------------------------------------------ [2001-06-27 00:31:07] danbeck@php.net Added to session_register() documentation in latest cvs. ------------------------------------------------------------------------ [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 at agilitime dot 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=8719&edit=1

« previous php.doc.bugs (#19143) next »