Skip to content

Instantly share code, notes, and snippets.

@sigmaris
Forked from justquick/cookie.py
Created March 26, 2011 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigmaris/888669 to your computer and use it in GitHub Desktop.
Save sigmaris/888669 to your computer and use it in GitHub Desktop.
Use cookies for all session storage in Django. This version uses HMAC to verify the integrity of the cookie, and raises SessionTooBig if the session is too large to fit in a cookie.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment