Re: A tricky problem
| From: | Brian Clark | Date: | Sat, 14 Apr 2001 19:20:21 +0000 |
| Subject: | Re: A tricky problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48585@lists.php.net to get a copy of this message | ||
Hi David,
@ 3:06:19 PM on 4/14/2001, David Tandberg-Johansen wrote:
...
> The problem is:
> If a user leaves the site because the user doesn't want to go thrue with the
> order, or if the user closes the broser, then the recods of the selected
> info are still in the temp TABLE. How can I delete this info when the user
> leaves or close the browser?
You don't. Just store the age of the session (date,time,whatever) in
the table along with the other information. Then, when someone visits
the site, the dates are checked in the table and the old entries are
cleared.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.