ID: 11404 Updated by: jmoore Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]