I'm using Django 1.4. According to the Django csrf docs, I decorate my class-based view in the urls.py as follows:
cache_page(1800)(csrf_protect(MyView.as_view())) I kept reloading MyView page url and Set-Cookie header would be recursive like this: Set-Cookie: csrftoken="Set-Cookie: csrftoken=\"Set-Cookie: csrftoken=XeRCBpXuNpuRie17OqWrDIM3xKt9hV3Q\\073 expires=Sat\\054 11-May-2013 19:50:21 GMT\\073 Max-Age=31449600\\073 Path=/\"" I don't know what's a trigger to this behavior. Has anyone found a problem like this? Please help. Thanks. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/Q5Ywwf3O0sIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
