Skip to content

Commit

Permalink
Removed TEST_COOKIE_NAME and TEST_COOKIE_VALUE constants from
Browse files Browse the repository at this point in the history
sessions.middleware. They haven't been used here since the great refactor and
are duplicated in sessions.backends.base.SessionBase.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jul 30, 2008
1 parent 8880fdd commit 004ff03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions django/contrib/sessions/middleware.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
from django.utils.cache import patch_vary_headers from django.utils.cache import patch_vary_headers
from django.utils.http import cookie_date from django.utils.http import cookie_date


TEST_COOKIE_NAME = 'testcookie'
TEST_COOKIE_VALUE = 'worked'


class SessionMiddleware(object): class SessionMiddleware(object):

def process_request(self, request): def process_request(self, request):
engine = __import__(settings.SESSION_ENGINE, {}, {}, ['']) engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None)
Expand Down

0 comments on commit 004ff03

Please sign in to comment.