note 21503 added to ref.session

From: Date: Wed, 15 May 2002 11:23:55 +0000
Subject: note 21503 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-30667@lists.php.net to get a copy of this message
As we now have to generate PDFs on the fly for some customers we get one problem more often: It seems, that the php session is 'destroying' the header of a html page (or css, js, etc). This problem is everywhere (not only application/pdf) I.E. we got a file called index.html. Before starting a session it will get the Content-Type of 'HTML Document' (seen in properties of ie6 ). With the header() method I can change this, also. After starting a session and calling the page again the Content-Type, Content-Size, etc will turn to 'unknown'... for me this means that the session destroyes the document header in some way! Someone got an idea to solve this problem? Not nice to have this problem, while generating PDFs on the fly with PHP and started a session before. Session will destroy Header, and without header the pdf will not be loaded. Btw... the pdf is the script... -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+21503 http://master.php.net/manage/user-notes.php?action=delete+21503 http://master.php.net/manage/user-notes.php?action=reject+21503

« previous php.notes (#30667) next »