RE: [PHP] sessions
| From: | Alastair Battrick | Date: | Wed, 20 Mar 2002 21:24:36 +0000 |
| Subject: | RE: [PHP] sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89408@lists.php.net to get a copy of this message | ||
There must be some whitespace in the script before the opening <?php
Lose that and the error should go with it.
Alastair Battrick
Senior Developer
Lightwood Consultancy Ltd
http://www.lightwood.net
> I am kind of confused by an error I am getting when trying to destroy a
> session. Here is the error that I am receiving along with the
> code that is
> causing the problem.
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at /home/www/wildwebtech/cumc/default.php:9) in
> /home/www/wildwebtech/cumc/default.php on line 10
>
> <?
> session_start();
>
> $old_user = $cumc_user; // store to test if they *were* logged in
> $result = session_unregister("cumc_user");
> session_destroy();
> ?>