faqts : Computers : Programming : Languages : PHP : Installation and Setup : Sessions & Cookies

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 5 people (40%) answered Yes
Recently 2 of 5 people (40%) answered Yes

Entry

why do I get a message "Warning: session_start(): Cannot send session cookie - headers already sent

Oct 9th, 2006 10:25
Matthew Wilkinson, xinyu niu, http://php.net/ob-start


You need to place session_start() at a place in your script before
anything is output to the browser. Alternatively, you can place
ob_start() at the beginning of your script to activate output buffering.