Even though PHP 4.0.0 doesn't have access to session_cache_limiter(), I can
still set the value inside an apache <Directory> block.
php_value session.cache_limiter "public"
So this works inside my httpd.conf keeping my other dynamic data from being
cached yet allowing the browser to cache the PDF (which is ok to cache as I
assume the user is finished and wants permanent data anyway)
<IfDefine SSL>
<VirtualHost 192.168.3.8:443>
<lots of other SSL stuff>
<Directory /path/to/my/files/pdfs>
AllowOverride All
php_value session.cache_limiter "public"
</Directory>
</VirtualHost>
</IfDefine>
DAve
>> Subject: Re: [PHP] MSIE on Windows can't open PDF via SSL
>>
>> Aha, thanks for the answer, this is it exactly. I might add that this
>> problem is evident in Explorer 5+ and only on the PC in our tests.
>>
>> Unfortunately I'm running PHP 4.0.0 which does not support setting
>> session_cache_limiter on a per request basis. So while this is a fix, it's
>> not a fix for me.
>>
>> It looks as if an upgrade may be inevitable, I was really hoping to avoid
>> that.
>>
>> DAve
>>>
>>> It may be the no cache headers that are sent when you call session_start();
>>> You can try calling session_cache_limiter("public") first.
>>>
>>> http://www.php.net/manual/en/function.session-cache-limiter.php
>>>
>>>
>>> DAve Goodrich <[EMAIL PROTECTED]> wrote:
>>> First off I'm aware of the service pack, installed it, no fix.
>>>
>>> Currently we build a PDF for download to represent a hardcopy of our
>>> customers data. It works very well so far and will likely become a standard
>>> feature. We experienced no problems with cross-platform use until we moved
>>> into a mod_ssl server. The PDFs are no served from within the SSL realm. We
>>> changed no code but now MSIE on W2K and NT cannot get a PDF, MSIE complains
>>> that the file "cannot be found". The ssl_request log shows no error and the
>>> file was served completely. All Macs, Unixes, and NAV on wintel platforms
>>> work fine.
>>>
>>>
>>> This works:
>>> Dynamic PDF (built with php) over http MSIE/NAV PC/MAC
>>> Dynamic PDF (built with php) over https MSIE/NAV MAC and NAV PC
>>> Static PDF over http MSIE/NAV PC/MAC
>>> Static PDF over https MSIE/NAV PC/MAC
>>>
>>> This doesn't:
>>> Dynamic PDF (built with php) over https MSIE on PC
>>>
>>> Param strings on the URL make no difference (think sessions), failure still
>>> occurs with the same message. That was why I tested static PDFs, just to be
>>> sure.
>>>
>>> We are running ->
>>> Apache 1.3.12
>>> PHP 4.0.0
>>> CPDF 2.02-r1-2
>>>
>>> The code in question is as follows,
>>>
>>> <?php
>>>
>>> session_start();
>>>
>>>
>>> $cpdf = cpdf_open(0);
>>>
>>> <build pdf things here>
>>>
>>> cpdf_finalize($cpdf);
>>>
>>> header("Content-type: application/pdf");
>>> header("Content-Disposition: attachment; filename=Results.pdf");
>>> header("Content-Description: PHP Generated PDF" );
>>>
>>> cpdf_output_buffer($cpdf);
>>>
>>> cpdf_close($cpdf);
>>> ?>
>>>
>>> Any thoughts, suggestions, WAGs would be appreciated.
>>>
>>>
>>> DAve
>>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]