maxcountryman/flask-login — pull request #24 by simonz05 (2012-07-25 10:17:55+00:00)
Title: Avoid touching the session unless something changed

Some session backends will try to detect changes made to the session
dictionary and only save if the session was modified. The pop() call
will set modified = True in such a backend. By checking if the
"remember" key exists before we pop it we avoid this behaviour.