Permalink
Browse files

only remove logged_in session var on logout

  • Loading branch information...
1 parent a12b27f commit b22c53d95a10df7fa2a845ea6ea60b77d966a193 Kalon Hinds committed Sep 16, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 cyclonejet/views/frontend.py
@@ -43,9 +43,6 @@ def login():
@frontend.route('/logout')
def logout():
- # clean-up all session variables (dunno if there'll be a case where we want some items stored)
- for item in session.iteritems():
- session[item] = None
-
+ session.pop('logged_in', None)
flash("You've been logged out, see ya")
return render_template('index.html')

0 comments on commit b22c53d

Please sign in to comment.