note 46949 deleted from function.session-start by bjori

From: Date: Sun, 16 Apr 2006 00:21:42 +0000
Subject: note 46949 deleted from function.session-start by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108210@lists.php.net to get a copy of this message
Note Submitter: laacz at laacz dot lv ---- If You are not using cookies to store session_id's, that does not mean, that session_start() will not send any headers at all. It still sends cache controlling information to user. For example: Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Even, if You set cache_limiter to none (via ini_set('session.use_cookies', 0) or ini_set('session.cache_limiter', 'none')), session_start() still tries to send empty headers and that causes error message "Cannot send session cache limiter - headers already sent". So, use output buffering, if You need to output something before session_start(). session_start

« previous php.notes (#108210) next »