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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to