Skip to content
Snippets Groups Projects
Commit b765b871 authored by Pekka Harjamäki's avatar Pekka Harjamäki
Browse files

Added faulty session library

parent 9de119c2
No related branches found
No related tags found
No related merge requests found
import django.contrib.sessions.backends.db as db
class SessionStore(db.SessionStore):
session_counter = 0
def _get_new_session_key(self):
while True:
session_key = 'session-' + str(SessionStore.session_counter)
SessionStore.session_counter += 1
if not self.exists(session_key):
return session_key
......@@ -51,6 +51,7 @@ MIDDLEWARE = [
]
ROOT_URLCONF = 'config.urls'
SESSION_ENGINE = 'config.brokensession'
TEMPLATES = [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment