Changes between Version 1 and Version 2 of CookBookDualSessionMiddleware
- Timestamp:
- Jan 22, 2007, 3:22:55 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookDualSessionMiddleware
v1 v2 1 The default [http://www.djangoproject.com/documentation/sessions/ SessionMiddleware] that comes with Django lets you pick if you want all sessions to be browser-length or persistent, if you want to use different types of sessions based on a users preference (e.g. the good old "Remember Me" check-box) you're gonna have to write your own middleware. Fortunately it's pretty easy, here's my attempt.1 The default [http://www.djangoproject.com/documentation/sessions/ SessionMiddleware] that comes with Django lets you pick if you want all sessions to be browser-length or persistent, if you want to use different types of sessions based on a users preference (e.g. the good old "Remember Me" check-box) you're gonna have to write your own middleware. Fortunately it's pretty easy, this page documents my attempt, I don't like the "DualSession" name much, but it's the best I could come up with. 2 2 3 3 {{{