Re: Sessions don't work
| From: | Michael Scappa | Date: | Fri, 11 Apr 2003 20:26:44 +0000 |
| Subject: | Re: Sessions don't work | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10587@lists.php.net to get a copy of this message | ||
Looks like you probably have a line break before your opening <?php tag.
-mike
----- Original Message -----
From: "Juergen Geuter" <juergen.geuter@gambit.ath.cx>
To: <php-install@lists.php.net>
Sent: Friday, April 11, 2003 3:43 PM
Subject: [PHP-INST] Sessions don't work
> Hi
>
> I've got a problem with Sessions in my php-installation (PHP(PHP 4.3.1
> (cli)))
> The problem is:
> The script
>
> <?php
> session_start();
> ?>
>
>
> Does not work. When I start it via "php filename.php" it returns:
>
> Warning: session_start() [http://www.php.net/function.session-start]:
> Cannot send session cookie - headers already sent in
> /www/htdocs/mp3/sessiontest.php on line 3
>
> Warning: session_start() [http://www.php.net/function.session-start]:
> Cannot send session cache limiter - headers already sent (output started
> at /www/htdocs/mp3/sessiontest.php:3) in /www/htdocs/mp3/sessiontest.php
> on line 3
>
>
> the script
> <?php
> setcookie("testcookie");
> ?>
>
> works perfectly.
> I checked the file for whitespaces, there are none. Anyone got any idea
> where this error comes from?
>
> Thanks in advance
>
> Jürgen Geuter
> --
> ICQ # 81510866 - http://www.emptiness.de -
> thanatos@emptiness.de
> "War does not determine who is right - only who is left."
> (Bertrand Russell)
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php