Changes between Version 9 and Version 10 of CookBookDualSessionMiddleware


Ignore:
Timestamp:
Mar 31, 2011, 7:10:36 PM (14 years ago)
Author:
newacct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookDualSessionMiddleware

    v9 v10  
    6666                else:
    6767                    max_age = settings.SESSION_COOKIE_AGE
    68                     expires = datetime.datetime.strftime(datetime.datetime.utcnow() + datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE), "%a, %d-%b-%Y %H:%M:%S GMT")
     68                    expires = (datetime.datetime.utcnow() + datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE)).strftime("%a, %d-%b-%Y %H:%M:%S GMT")
    6969               
    7070                new_session = Session.objects.save(session_key,
Back to Top