Lutz, Yea I don't plan on having the user login to purchase a product from me. So I guess Session's will work if that is the case. It looks like I will have to place a cookie on the visitor's computer using set_test_cookie() and test_cookie_worked() method's so that I'm able to tell the difference between two users that are adding products to the cart at the same time. Does anybody know of any problems with this solution?
On Jul 19, 11:40 am, Lutz Steinborn <[EMAIL PROTECTED]> wrote: > Hi Jeremy, > > On Thu, 19 Jul 2007 10:45:46 -0500 > > "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > On 7/19/07, Greg <[EMAIL PROTECTED]> wrote: > > > x = request.session ?? # I want to add s and c to my session? > > > cart = request.session.get('cart', []) > > cart.append({'style':s,'choice'c}) > > > request.session['cart']=cart > > > But, fundamentally, putting cart info in session is a bad idea; people > > switch computers (and thus cookies; sessions) fairly often. Also, > > people delete cookies for good reasons. I'd be severely pissed if my > > amazon wishlist went away when I deleted cookies. > > but was is the solution if the user is not logged in ? > At this point your only chance is a session bound cookie or I'm wrong ? > > Kindly regards > Lutz Steinborn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---