Possible Duplicate:
Headers already sent by PHP
I am trying to access DOMPDF (a script that converts HTML to a PDF) within a SESSION protected area of my website.
The SESSIONs contain user info and when you click a button the page refreshes and downloads that page as a pdf. This works fine on my dev server on my laptop. But online it says headers already sent.
I printed the headers which are below and have traced it back to my SESSIONs. Is it the case that as soon as you initialise a SESSION headers are sent?
array(3) {
[0]=> string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
[1]=> string(77) "Cache-Control: no-store, no-cache, must-revalidate,post-check=0, pre-check=0"
[2]=> string(16) "Pragma: no-cache"
}