Re: Sessions: strange behaviour in 4.3.3 ?
| From: | Chris Shiflett | Date: | Fri, 16 Jan 2004 16:29:54 +0000 |
| Subject: | Re: Sessions: strange behaviour in 4.3.3 ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174843@lists.php.net to get a copy of this message | ||
--- Dino Tsoumakis <dimaki@gmx.de> wrote:
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at XXXXXX/class.session.php:61) in
> XXXXXX/class.session.php on line 38
You need to either put session_start() prior to any output (my preference)
or use output buffering by putting ob_start() prior to any output.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/