Hi. I searched for information on this and couldn't find any except for a suggestion to use session_cache_limiter('private') which didn't help me.
Here is my problem:
I am using sessions on my pages which sends header information with the session_start() function call.
Further down on the page, I am using PDFLib functions to generate a .pdf document. Before I can output it to the browser, the document requires several header() functions to be sent such as:
header("Content-type: application/pdf");
How can I do this without getting the "headers already sent" error? Please help. Thanks, Kent
pdflib, sessions and headers
Moderator: General Moderators
The first place to check would be a topic stickied to the top of this forum, Sticky: Before Post Read: Warning: Cannot add header information.