Re: Re: [PHP] Warning: session_start()
| From: | Tim Streater | Date: | Thu, 19 May 2011 09:37:00 +0000 |
| Subject: | Re: Re: [PHP] Warning: session_start() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-312907@lists.php.net to get a copy of this message | ||
On 19 May 2011 at 10:20, Richard Quadling <rquadling@gmail.com> wrote:
> On 18 May 2011 19:15, Nazish <nazish@jhu.edu> wrote:
>> Hi everyone,
>> <!-----------------------------------------------------------------------
>> WHEN USER CLICKS 'ENTER' TO LOGIN
>> <!------------------------------------------------------------------------>
>> <?php
code, code, code.
>> ?>
>
> The session cookie must be sent prior to any output. Including, but
> not limited to, comments, whitespace, HTML code, etc.
> 2 - Remove all white space. Personally, this is the route I would use.
For the sake of completeness, that is whitespace *outside* the <?php ?> tags.
tim