Hello!

I have an experimental PHP page that is supposed to become a simple
shopping cart. The session ID is embedded into the URLs, the orders
are received through POSTed forms, and saved into a corresponding
temporary file on the server. I am not using cookies nor PHP sessions.

In the beginning, it worked fine in Netscape 4.08, but IE 5 would cache
the pages even though they were created dynamically. For example, if
I would open a category, then open a single item, and update the cart
there, and then open the category link again (not by going BACK), IE
would just take it from the cache.

So, I added a following .htaccess directive to the main folder (I am
using the Zeus server):

<files *.php>
Header set Expires NOW
</files>

Now it works fine in the IE, but Netscape gets confused sometimes.
It first loads the page fine, but as soon as it (almost) finishes, it tries
to reload it, and since it is expired in the cache it replaces what was
already on the screen with a message that the page was generated
with the POSTed contents and that it has to be reloaded.

I tried adding a few seconds to the "NOW" above, but it seems
that Netscape takes the server's time (which in my case is few hours
less then my local time) and then compares it with the local time.

Do othe versions of Netscape also have these features - trying to
reload the page from its own cache just after it was loaded fromt
fromthe server, and taking the server's time for the beginning of
the expiration period?

Did anyone find a way around these problems? Or I am creating
unnecessary trouble to myself and there is better way to do all this?

Svemir


-- 
PHP Windows 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]

Reply via email to