RE: [PHP] Session Handling

From: Date: Wed, 06 Nov 2002 12:08:06 +0000
Subject: RE: [PHP] Session Handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122965@lists.php.net to get a copy of this message
You must call session_start before any output to the browser. A blank line or space outside of PHP blocks is considered output. The error message tells you exactly where the output started. Read the manual for more information, it's all covered. ---John Holmes... > -----Original Message----- > From: Uma Shankari T. [mailto:umashankari@lantana.tenet.res.in] > Sent: Wednesday, November 06, 2002 6:59 AM > To: PHP > Subject: [PHP] Session Handling > > > > Hello, > > I have tried session handling..after starting the session i am trying to > get the value by this command > > session_start(); > echo $varname; > > but it is displaying this error.. > > Warning: Cannot send session cookie - headers already sent by (output > started > > Can anyone tell me how to go about with this ?? > > > Regards, > Uma > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#122965) next »