On Jul 22, 5:09 am, Greg <[EMAIL PROTECTED]> wrote: > It's just weird how that line 'del > request.session['cart'][0]' works fine in the showcart function but > doesn't work right in the deletecart function.
It sounds like that the session just isn't getting saved. See http://www.djangoproject.com/documentation/sessions/#when-sessions-are-saved I'd suggest adding the following to your deletecart view: request.session.modified = True --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---