|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-17 04:43 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
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 ?>