Thanks Marek!~ I have solved this problem with the exactly suggestion from you. session_cache_limiter("private_no_expire");
Marek Kilimajer wrote: > Experiment with session_cache_limiter(), for example try to set it to > private_no_expire. > > Harry Yau wrote: > > > Hi all, > > I am new to php. At first, I wrote a php script to generate a pdf > > file from a tex file and load that pdf file to the browser by call a > > system call of latex -pdftex. After loading the pdf file. I wrote a > > function to remove all temp file created by latex. It work fine and it > > did all I expected. The php script work on IE 5, Netscape 4.79 and > > Mozilla 5.0. > > However, when I've tried to add a command "session_start" at the > > beginning of my script and even did set and get those session variables, > > different functionility of the php script MISSed upon different browse. > > On Netscape 4.79, it does generate the pdf file and remove those > > temp file, but loading the pdf file to the browser. The Netscape keeps > > complainning about the pdf file is damaged and could not be repaired. > > On IE5, the script does load the pdf file, but it does not remove > > those temp file. > > Nevertheless, on Mozilla, it works fine for me!! > > For not loading the pdf on netscape, I thought it is because the > > script does some output to the browser before I call > > "header("content-type:application/pdf");" Therefore, I put "ob_start()" > > before starting session and call "ob_end_clean()" before setting the > > header for pdf content. It does not correct the problem. > > I am wondering what exactly the "session_start()" does? How it can > > have different effect upon various browser? Of simply, please tell me > > how to correct those problems!~ > > Thank You Very Much!~ > > > > > > Best Regards, > > Harry Yau > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php