Ticket #15618: 03-domain-of-messages-cookie.diff

File 03-domain-of-messages-cookie.diff, 612 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 b4ab98d..2cc6fa6 100644
    a b class CookieStorage(BaseStorage):  
    7272        store, or deletes the cookie.
    7373        """
    7474        if encoded_data:
    75             response.set_cookie(self.cookie_name, encoded_data)
     75            response.set_cookie(self.cookie_name, encoded_data,
     76                domain=settings.SESSION_COOKIE_DOMAIN)
    7677        else:
    7778            response.delete_cookie(self.cookie_name)
    7879
Back to Top