Re: Re: php and caching

From: Date: Sun, 24 Nov 2002 23:27:59 +0000
Subject: Re: Re: php and caching
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-125842@lists.php.net to get a copy of this message
Ernest E Vogelsinger wrote: > > At 22:38 24.11.2002, Alex said: > --------------------[snip]-------------------- > >But my main page, for instance mail.php, includes top.php and bottom.php. > >But top.php must be processed each time because it prints on every page on > >my site if the user has new messages. But if all pages are cached, then it's > >always the cached version that's printed to the user, so even if he has new > >mail, it doesn't show (because the page is directly taken from the cache > >instead of being re-requested). > >So I don't want this situation to happen, but i'd want users to be able to > >make use of their back button without clearing the forms. Is there a > >solution around this problem? > --------------------[snip]-------------------- > > You can't have all of both worlds - either allow the browser to cache, then > the form content will be still available from the <back> button. Or you > disallow caching, then it won't. Actually you can. Try using session variables. Cheers, Rob. -- .---------------------------------------------. | Worlds of Carnage - telnet wocmud.org 4000 | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------'

« previous php.general (#125842) next »