note 59129 deleted from function.session-register by philip

From: Date: Wed, 29 Mar 2006 06:27:15 +0000
Subject: note 59129 deleted from function.session-register by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106921@lists.php.net to get a copy of this message
Note Submitter: info at miguelcenaculo dot com ---- I spent a night and some hours to figure why every $_SESSION variables passed ok from one page to another, some of them were incremented in some include files.. but one of them just dont appear in the destination page.. The session id was the same in both pages but for some reason this didnt work for $_SESSION['TEST'].. (PHP ver 4.3.11) It only worked with session_register('TEST') before i use $_SESSION['TEST'].. then i used phpinfo to check for register_globals and i saw it was ON.. but even so, the $_SESSION should be global here and should register a session var automaticaly. Anyway, it started working with session_register().

« previous php.notes (#106921) next »