Re: SESSION problem
| From: | Ashley Sheridan | Date: | Sat, 16 Aug 2008 11:45:18 +0000 |
| Subject: | Re: SESSION problem | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278218@lists.php.net to get a copy of this message | ||
session_start() doesn't have to be the first line in the code, but it
does have to occur before ANY content sent to the browser, and this
includes any headers as well. Generally speaking, it does no harm to
have it as the first line of your PHP code
Ash
www.ashleysheridan.co.uk