Ticket #15618: 03-delete-cookie-from-correct-domain.diff

File 03-delete-cookie-from-correct-domain.diff, 672 bytes (added by Chris Lamb, 14 years ago)
  • django/contrib/messages/storage/cookie.py

    diff --git a/django/contrib/messages/storage/cookie.py b/django/contrib/messages/storage/cookie.py
    index 2cc6fa6..45a20d0 100644
    a b class CookieStorage(BaseStorage):  
    7575            response.set_cookie(self.cookie_name, encoded_data,
    7676                domain=settings.SESSION_COOKIE_DOMAIN)
    7777        else:
    78             response.delete_cookie(self.cookie_name)
     78            response.delete_cookie(self.cookie_name,
     79                domain=settings.SESSION_COOKIE_DOMAIN)
    7980
    8081    def _store(self, messages, response, remove_oldest=True, *args, **kwargs):
    8182        """
Back to Top