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?

Entry

i get a warning about "headers already sent..."; as a consequence my _SESSION variables don't work

Oct 9th, 2006 10:26
Matthew Wilkinson, sefu mare, 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.