asp.net - Cleaning up old shopping carts -


the project i'm working on asp.net 2.0 e-commerce site. shopping cart session based expires after 30 minutes or so. i've converted carts stored on database i'm left problem of cleaning old carts. best way clean cart table in database? going make page in admin section owner can click clean shopping carts older 1 week. there better way handle this?

if people abandon cart, they're no longer interested.

simple solution give user option "save cart" (to db). presuming have working membership system profiles set can view cart on next login.

as makit said, if you're running sql server above express can use scheduled stored procedure. have other options clear-up of old entries such windows scheduled task or run stored procedure start method in global.asax file.

this best suggestion i've come across: data should not deleted @ all. amazon person may return months later , purchase cart:

http://brockallen.com/2012/04/07/think-twice-about-using-session-state/

conclusion? let users opt save cart contents themselves. better business model.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -