Created
May 9, 2014 21:45
-
-
Save johntron/67e5bf9b400f2b70470e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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