Permalink
Browse files

Make session last until browser is closed.

  • Loading branch information...
1 parent 707c7f7 commit 925e1853df30fcd1675981105401f08950f9c6ab @peterkuma committed Jun 12, 2012
Showing with 2 additions and 1 deletion.
  1. +0 −1 fileshack/views.py
  2. +2 −0 fileshackproject/settings.py
View
@@ -118,7 +118,6 @@ def index(request, store):
request.session["fileshack_stores"] = [store.id]
else:
request.session["fileshack_stores"].append(store.id)
- request.session.set_expiry(3600)
return HttpResponseRedirect(store.get_absolute_url())
else:
t = loader.get_template("fileshack/accesscode.html")
@@ -126,6 +126,8 @@
'fileshack',
)
+SESSION_EXPIRE_AT_BROWSER_CLOSE = True
+
# Serve static and media files even when DEBUG == False.
SERVE_STATIC = False

0 comments on commit 925e185

Please sign in to comment.