mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
Fixed #15618 -- CookieStorage storage in messages framework now honors SESSION_COOKIE_DOMAIN. Thanks for the report and patch, lamby
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -72,7 +72,8 @@ class CookieStorage(BaseStorage):
|
||||
store, or deletes the cookie.
|
||||
"""
|
||||
if encoded_data:
|
||||
response.set_cookie(self.cookie_name, encoded_data)
|
||||
response.set_cookie(self.cookie_name, encoded_data,
|
||||
domain=settings.SESSION_COOKIE_DOMAIN)
|
||||
else:
|
||||
response.delete_cookie(self.cookie_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user