Ticket #15618: 03-domain-of-messages-cookie.diff
File 03-domain-of-messages-cookie.diff, 612 bytes (added by , 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): 72 72 store, or deletes the cookie. 73 73 """ 74 74 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) 76 77 else: 77 78 response.delete_cookie(self.cookie_name) 78 79