Code

Changes between Version 9 and Version 10 of CookBookDualSessionMiddleware


Ignore:
Timestamp:
03/31/11 17:10:36 (3 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,