Re[2]: [PHP] sessions help
| From: | Leston Drake | Date: | Thu, 13 Jun 2002 21:16:16 +0000 |
| Subject: | Re[2]: [PHP] sessions help | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102069@lists.php.net to get a copy of this message | ||
It's the 1st line after <?php in both files.
At 03:09 PM 6/13/2002, you wrote:
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