Changes between Version 9 and Version 10 of CookBookDualSessionMiddleware
- Timestamp:
- Mar 31, 2011, 7:10:36 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookDualSessionMiddleware
v9 v10 66 66 else: 67 67 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") 69 69 70 70 new_session = Session.objects.save(session_key,