Re[2]: [PHP] Cache
| From: | Антон | Date: | Wed, 21 May 2003 08:25:47 +0000 |
| Subject: | Re[2]: [PHP] Cache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148383@lists.php.net to get a copy of this message | ||
Hi
BY> This is not my intention :)
BY> I don't want to actually disable the back button, but just not allow to
BY> go back to a specific page.
BY> This is very common on sites that use ecommerce and don't want you to go
BY> back to the payment page right after you finished paying to avoider
BY> double payments.
BY> I can see this work on other sites. I can see the headers they send, and
BY> this is the message you get on IE when you use this feature :
BY> Warning: Page has Expired
BY> The page you requested was created using information you submitted in a
BY> form.
BY> This page is no longer available.
BY> As a security precaution, Internet Explorer does not automatically
BY> resubmit your information for you.
BY> To resubmit your information and view this Web page, click the Refresh
BY> button.
BY> Sincerely
BY> berber
BY> Visit http://www.weberdev.com/ Today!!!
BY> To see where PHP might take you tomorrow.
You should use sessions to avoid double payments. When user has paid
you should set $_SESSION['paid_flag'] to true. Check the flag on all
payment pages and print appropriate content.
Excuse my awful English.
--
Regards
Anton