RE: [PHP] Sessions
| From: | Kevin Stone | Date: | Wed, 20 Mar 2002 21:23:08 +0000 |
| Subject: | RE: [PHP] Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89410@lists.php.net to get a copy of this message | ||
"on line 10"? Curious, you don't even have 10 lines there. Do you
have lines above the PHP tag <?. The <? Must start the first character
on the first line of the page otherwise the browser will interpret it as
either Content-type: text/plain or Content-type: text/html and give you
a "headers already sent" error.
Hope that helps.
-Kevin
-----Original Message-----
From: Joshua E Minnie [mailto:josh@acsurf.net]
Sent: Wednesday, March 20, 2002 12:53 PM
To: php-general@lists.php.net
Subject: [PHP] Sessions
I am kind of confused by this error that I am receiving when I try to
logout
of a session. If somebody could pleae help me out here.
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
Here is the code that is causing the problem.
<?
session_start();
$result = session_unregister("valid_user");
session_destroy();
?>
--
Joshua E Minnie
CIO
josh@acsurf.net
"Don't work for recognition, but always do work worthy of recognition."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php