You may session_destroy() on other pages you have control of, but there
is no way of finding out that
the user has left your page and then came back (maybe you can play with
onunload body tag, but it will
be a pain for you to implement and also for the user). Alse check
*session_set_cookie_para
It's in the manual here:
http://www.php.net/manual/en/function.header.php
It gives this solution
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
Sheni,
I needed to do a similar thing as this. When creating the form have a hidden
value which is the current time. The when procesing the form check the time.
If its to old just say page expired.
I found this worked fine. Hope this helps.
Paul
""Sheni R. Meledath"" <[EMAIL PROTECTED]> wrote
You can use javascript and set the history length to 0
- Original Message -
From: Sheni R. Meledath <[EMAIL PROTECTED]>
To: PHP Masters <[EMAIL PROTECTED]>
Sent: Saturday, March 17, 2001 11:47 PM
Subject: [PHP] Expire data from form
> Hi,
>
> I have set
4 matches
Mail list logo