Re: Transmit data and kill the page!
| From: | Andreas Pour | Date: | Fri, 08 Sep 2000 12:51:13 +0000 |
| Subject: | Re: Transmit data and kill the page! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15865@lists.php.net to get a copy of this message | ||
Ramender Kishore wrote:
>
> How can we transmit data from one page to another page with the additional functionality to
> kill that page so that it cannot be reverted back to!
Hi,
What do you mean cannot be reverted back to? If the browser caches the
page you can't prevent the viewer viewing it again (you can send
no-cache headers but they don't have to be obeyed). If you are worried
about double-posts, what I do is include a hidden "key" on post pages,
and keep the same key in the session data. When a post is made that
matches the key, a new key is randomly generated (which is then used on
further form pages and stored with the session data); if a post is made
with a non-matching key then I treat it as a re-post and handle it
appropriately.
Hope that helps,
Ciao,
Andreas Pour
http://www.kde.com/ : Everything KDE
http://apps.kde.com/: The Latest in KDE Applications