Re: PHP script problem
| From: | Yasuo Ohgaki | Date: | Wed, 14 Nov 2001 15:29:07 +0000 |
| Subject: | Re: PHP script problem | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4954@lists.php.net to get a copy of this message | ||
Celso G. Correa wrote:
When I run this script, I'm receiving back the following warning : Warning: Cannot send session cache limiter - headers already sent (output started at D:\Websites\Php\teste2_sess.php:6) in D:\Websites\Php\teste2_sessphp on line 8 Sessão01 : cfe7f6288656774275396fcaebf9754eTake a look at http://www.php.net/manual/en/ref.session.php there should be notes about this warning. You cannot send any before you start session, since cookie is needed to be sent before any output. (When cookie is used for session) BTW, your script does not seem valid. The manual & notes should help to find out what's wrong. Instead of using globals, use $HTTP_SESSION_VARS, then you don't have to use session_register()/session_is_registered()/session_unregister(). -- Yasuo Ohgaki