I am working on implementing a shopping cart. I am planning to storethe shopping cart items in a database table. A shoppingcartid will beused to distinguish between different shopping carts. Theshoppingcartid for members will be their userid, for others it will bea guid. I am planning to store the shoppingcartid in a sessionvariable. We don't have a webfarm, just one server machine. I amthinking of using session with InProc mode.
But I have read many posts complaining of expired sessions, sessiontimeouts, session_end not fired etc. Is it ok to use sessions to storethe cartid or is there any better solution?
Thanks.
If your serious and in a hurry, SQL Server is the easy way. the other options are to write your own or use another server.
There is no session end when running SQL Server session
You said 'to write your own'. Can you please ecplain more on that. Thanks.
Sadly, time does not permit, but have a look at this - it should help
http://www.codeproject.com/aspnet/StateHijack.asp
Thanks.
Can any one tell me is there any major downside of using cookies tostore the cartid instead of sessions? I think there will be moreabondoned carts than when using sessions. But I am not concerned aboutthat.
I think may be you could use a temp table to store your data,you can delete the expired data automaticlly
hello.
or maybe you should consider taking a look at profiles.
I am not using ASP.Net 2.0 I cannot use profiles.
0 comments:
Post a Comment