note 63147 deleted from function.session-register by philip
| From: | philip@php.net | Date: | Wed, 29 Mar 2006 06:29:18 +0000 |
| Subject: | note 63147 deleted from function.session-register by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106923@lists.php.net to get a copy of this message | ||
Note Submitter: keith dot lawrence at jpmh dot co dot uk
----
Even though $_SESSION is supposed to be global when created inside a function, it sometimes
doesn't work as documented. My workaround was to set the session outside of the function first
($_SESSION['whatever'] = '') before setting the value inside the function
($_SESSION['whatever'] = 'abc').