Re: how to determine if shopping cart has been abandoned?
| From: | Justin French | Date: | Thu, 04 Dec 2003 22:48:26 +0000 |
| Subject: | Re: how to determine if shopping cart has been abandoned? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171923@lists.php.net to get a copy of this message | ||
On Friday, December 5, 2003, at 09:35 AM, Chris W. Parker wrote:
Yeah the session files are cleaned up automatically but your application doesn't know that. You'd have to specifically tell your application (via a cron job??) when the session get cleaned up and that it (the application) should remove all the old carts. Is there something I don't know about (very possible!)? I mean, even if the users session file is deleted, how do you tell the app. to follow suit and delete it's ASIDE from setting a cron job?Rather than storing the shopping cart in a DB, store the cart in the session. When the session dies, so does the cart. When/if they choose to save it, it THEN gets ported into a database. Justin French