Re: [phplib] Also caching problem? From: Spruce Weber (sprucely <email protected>)
Date: 11/03/00

Marko,
To avoid "Expired from Cache" messages I send any form posts to one page
which processes the post data and then instead of outputting anything
redirects with header("Location: $success_redirect") or header("Location:
$failure_redirect") to a page that will display the results of that post.
$success_redirect and $failure_redirect are registered session variables
that I set in each page, usually to $sess->self_url().

Now when someone hits their back button to a page that resulted from a post
it simply displays the results from the previous post without having to
resubmit any data.

Hope this helps.
Spruce

>From: Marko Kaening <marko <email protected>>
>Reply-To: kaening <email protected>
>To: phplib <email protected>
>Subject: [phplib] Also caching problem?
>Date: Fri, 3 Nov 2000 10:25:59 +0100 (MET)
>
>Hi,
>
>I want to take part in the discussion about caching problems.
>
>I use NN4.7 (and IE4.0 for testing purposes) to display my phplib-created
>pages. Unfortunately I get regularyly messages like "Cannot display, page
>expired, please reload" when I use javascripts history.back() function. I
>don't understand why I see those messages, I thought the browser should
>know that he needs to reload it by himself without asking the user... Am I
>wrong?
>
>Well, the whole thing is solved by pressing "CTRL+R" or the reload button,
>but it disturbes the users.... Any solution for this?
>
>Looks like the only good way is to avoid using javascript and do
>everything with php then? I mean to have clear links to pages and not to
>rely on the cached documents...
>
>Marko
>
>
>--
> O _ O
> 0 0
> ------------------m-\o/-m------------------------------------------
> Marko K"aning Tel/Fax: +49-3834 554 442 / -3834 554 301
> INP Greifswald email : kaening <email protected>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: phplib-unsubscribe <email protected>
>For additional commands, e-mail: phplib-help <email protected>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>