Re[2]: [PHP] sessions help
| From: | Julie Meloni | Date: | Thu, 13 Jun 2002 21:09:00 +0000 |
| Subject: | Re[2]: [PHP] sessions help | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102066@lists.php.net to get a copy of this message | ||
LD> I just tried adding session_start() to the beginning of both files. When I
LD> load Doc 1, I get this warning twice(!):
LD> Warning: Cannot send session cache limiter - headers already sent (output
LD> started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7)
LD> in c:\program files\apache group\apache\htdocs\wan\sessions.php on line 9
LD> Same warning for Doc 2.
That just means you put it in the wrong place. It has to go before
any (and "any" means ANY) output.
- Julie
--> Julie Meloni
--> julie@thickbook.com
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20