Handling obsolete shopping cart info
Posted: Tue Jan 27, 2004 3:16 am
Im trying to figure out how to handle obsolete shopping cart info when a customer adds items (to be bought) and returns 1 day later to find the same items still in the cart. I use cookies to identify the customer. Im very new to php but know coding on general. Think there are two ways (please advice if there is more!):
1) to somehow delete from the shopping cart table when customer closes the browser(s) - for his cookieID
or
2) to modify the cookie lifetime so that it is not living long in the users pc (i use 365 days)
what is the best practice of the above? and are there any predefined functions for 1)
thanks
Serap
1) to somehow delete from the shopping cart table when customer closes the browser(s) - for his cookieID
or
2) to modify the cookie lifetime so that it is not living long in the users pc (i use 365 days)
what is the best practice of the above? and are there any predefined functions for 1)
thanks
Serap