Re: [SMARTY] caching

From: Date: Fri, 27 Dec 2002 03:06:52 +0000
Subject: Re: [SMARTY] caching
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6951@lists.php.net to get a copy of this message
That would be the standard behavior if your user hit refresh on the page that was the result of a POST operation. My suggestion would be to issue a header('Location ...); to redirect the user to a page they fetch with a GET instead of a POST after handling the posted information. See the tip on redirection in this tutorial http://www.zend.com/zend/tut/tutsweatpart2.php. HTH Jason ----- Original Message ----- From: "Gerard Samuel" <gsam@trini0.org> To: "Blue Presley" <blue928@carolina.rr.com> Cc: <smarty-general@lists.php.net> Sent: Thursday, December 26, 2002 7:01 PM Subject: Re: [SMARTY] caching > No, I don't think that smarty is directly causing this. When I coded > using pure php to echo() stuff, > IE also behaved in the manner you are suggesting. > Me personally, I was going to start to use sessions to hold form data, > just in case the form fails for one reason or another, > so that if they go back, all isn't lost. > But lets see what the gurus have to say about this matter. > > Blue Presley wrote: > > > now that I'm using smarty I have a problem with users getting the message: > > > > Warning: Page has Expired > > The page you requested was created using information you submitted in > > a form. This page is no longer available. As a security precaution, > > Internet Explorer does not automatically resubmit your information for > > you. > > > > To resubmit your information and view this Web page, click the Refresh > > button. > > > > > > there is a list of results and the user selects one to view the > > details, then hits back to see the lists of results.. it's when they > > hit back that they received the msg above. I don't want them to get > > this msg. is this what smarty caching is for? how do i prevent the > > user from seeing this msg? > > > > thx > > blue > > > > -- > Gerard Samuel > http://www.trini0.org:81/ > http://dev.trini0.org:81/ > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.smarty.general (#6951) next »