mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #6479 -- Use settings.SESSION_COOKIE_NAME instead of hard-coded "sessionid" in the test client. Thanks, Bastian Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -274,5 +274,5 @@ class Client:
|
|||||||
Causes the authenticated user to be logged out.
|
Causes the authenticated user to be logged out.
|
||||||
"""
|
"""
|
||||||
session = __import__(settings.SESSION_ENGINE, {}, {}, ['']).SessionStore()
|
session = __import__(settings.SESSION_ENGINE, {}, {}, ['']).SessionStore()
|
||||||
session.delete(session_key=self.cookies['sessionid'].value)
|
session.delete(session_key=self.cookies[settings.SESSION_COOKIE_NAME].value)
|
||||||
self.cookies = SimpleCookie()
|
self.cookies = SimpleCookie()
|
||||||
|
|||||||
Reference in New Issue
Block a user