Page 1 of 1

pdflib, sessions and headers

Posted: Thu Sep 04, 2003 10:54 am
by Symmetry
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

Posted: Thu Sep 04, 2003 6:02 pm
by DuFF
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.

Posted: Fri Sep 05, 2003 8:40 am
by Symmetry
Thanks for responding. I'll read that again.