Commit f45dab30 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Fixed #6479 -- Use settings.SESSION_COOKIE_NAME instead of hard-coded...

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
parent 046d9431
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -274,5 +274,5 @@ class Client:
        Causes the authenticated user to be logged out.
        """
        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()