Re: session variable problem
| From: | markb | Date: | Fri, 25 Mar 2011 17:39:15 +0000 |
| Subject: | Re: session variable problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312053@lists.php.net to get a copy of this message | ||
On 3/25/2011 12:13 PM, Ken Robinson wrote:
At 01:09 PM 3/25/2011, markb wrote:No error messages at all. error_reporting(E_ALL ^ E_NOTICE ); (I thought I was getting an error when creating new variables but that must have been a typo.) Session_start() called before any output (script was working on old host). -- Mark BVery rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables, change existing ones (but they do not persist to next call) - cannot create new variable without an errorWhat's the error you're getting? Also, do you have a call to session_start() at the beginning of each script before any output is sent to the browser? Ken