[PHP] A tricky problem
This is maybe of topic, but I try. I have this site where the user first selects a langueage, and then i use session_register() to register the information. Then I use the the registered onformatin to dispaly the site text in the user selected language. The user put the selected things in a temp TABLE and when they are finnished the info in the temp TABLE transfere over to a real TABLE. This isn't the problem 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? Thanks! David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] A tricky problem
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]