Skip to content

Instantly share code, notes, and snippets.

@johntron
Created May 9, 2014 21:45
Show Gist options
  • Save johntron/67e5bf9b400f2b70470e to your computer and use it in GitHub Desktop.
Save johntron/67e5bf9b400f2b70470e to your computer and use it in GitHub Desktop.
def pummel_session(request):
import hashlib
import random
import time
now = time.time()
while time.time() < now + 60:
request.session[hashlib.md5().hexdigest()] = hashlib.md5().hexdigest()
request.session.changed()
request.session.persist()
return {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment