Re: how to use session?

From: Date: Wed, 21 Jul 2004 17:44:34 +0000
Subject: Re: how to use session?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191361@lists.php.net to get a copy of this message
--- Sheawh <ilovethisgame1984@hotmail.com> wrote: > I have started a session using session_start(); > but it returns : > > Warning: Cannot send session cookie - headers already sent by > (output started at c:\inetpub\wwwroot\diary\index.php:7) in > c:\inetpub\wwwroot\diary\reg_session.php on line 11 > > Warning: Cannot send session cache limiter - headers already > sent (output started at c:\inetpub\wwwroot\diary\index.php:7) > in c:\inetpub\wwwroot\diary\reg_session.php on line 11 From http://www.php.net/session_start: "Note: If you are using cookie-based sessions, you must call session_start() before anything is outputted to the browser." Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#191361) next »