Re: [PHPLIB] printing and allowcache From: Narinda Reeders (narindar <email protected>)
Date: 11/15/99

Well, lucky for me, my situation is such that I can allow caching for the pages
that must be printable with no adverse effect. My solution (which I have no
doubt is *not* the best one, but it works) was to define two versions of
prepend.php3 and two versions of session.inc one with the $allowcache set to "no"
for my data entry pages and the other with it set to "public" (The data missing
error was still a problem on Netscape with "private" caching set).

My only concern is that I don't really understand the difference between private
and public caching (although I have my theories) so I am not sure what the effect
may be of setting this option - could some-one explain this to me?

cheers

Narinda

Mark Heintz wrote:

> My problem is that some browsers on some platforms (sorry, sorry, I don't
> have the specifics in front of me at the moment), printing results in a
> "data missing" error. It seems that the browser attempts to reload the
> page off the server before printing it, rather than simply printing the
> page that it is already displaying. Attempting to view source also
> results in a data missing error.
>
> Reading through the manual and the list archives, this behavior is
> identical to the data missing error when the back button is used. The
> manual suggests to use a second instance of session with the allowcache
> variable set to private. My original post asked for clarification on how
> this is done (can a script have multiple session instances, and if so
> which determines the caching behavior? Or do I have to pass off my
> none-caching session to one which allows caching?).
>
> Can anybody help me with this?
>
> Thanks,
> mh
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.