Bug #11404 Updated: Session Error

From: Date: Sun, 17 Jun 2001 08:43:09 +0000
Subject: Bug #11404 Updated: Session Error
Groups: php.dev 
Request: Send a blank email to php-dev+get-56929@lists.php.net to get a copy of this message
ID: 11404 Updated by: jmoore Reported By: lnc_18@yahoo.com.ar Old-Status: Open Status: Closed Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.5 Assigned To: Comments: Not a bug. would not be nice behaviour anyway. lets leave it as it is. - James Previous Comments: --------------------------------------------------------------------------- [2001-06-11 15:12:28] lnc_18@yahoo.com.ar When you create a variable in a method or function, the session it's created ok, but when you assign value to this session variable in a function or method, the global program, have not this value, Why? beacause you must to tell php that the session variable is GLOBAL. Bug? I think that is a bug, beacause a Session Variable must be a GLOBAL variable. Example: <?php class foo { function foo() { session_register("count"); $count++; } }; $MyClass = new foo(); echo (session_is_registered("count")) // This print that is registered. This is Oka echo($count); // This print ""; (nothing) I think that this the error, I repeat: "When you define a session variable, de assignment must be global to." Do you Understand. Sorry if it's not a bug.. I think that this is. Sorry for My "poor" english I'm from Argentina ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11404&edit=2

« previous php.dev (#56929) next »