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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php