Changes between Version 5 and Version 6 of CookBookDualSessionMiddleware


Ignore:
Timestamp:
11/06/07 03:17:44 (7 years ago)
Author:
nnonexistent@…
Comment:

Fix after [6333]

Legend:

Unmodified
Added
Removed
Modified
  • CookBookDualSessionMiddleware

    v5 v6  
    55from django.conf import settings
    66from django.contrib.sessions.models import Session
    7 from django.contrib.sessions.middleware import SessionWrapper
    87from django.utils.cache import patch_vary_headers
    98import datetime
     
    4039   
    4140    def process_request(self, request):
    42         request.session = SessionWrapper(request.COOKIES.get(settings.SESSION_COOKIE_NAME, None))
     41        engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
     42        request.session = engine.SessionStore(request.COOKIES.get(settings.SESSION_COOKIE_NAME, None))
    4343
    4444    def process_response(self, request, response):
Back to Top