Skip to content
Myr

Merge pull request #1162 from ajschumacher/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 96d7cc9, 05ad436 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • typo: "weather" -> "whether"

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/sessions.py+1 added-1 removed
253 unmodified lines
254 if session.permanent:255 return datetime.utcnow() + app.permanent_session_lifetime256257 def should_set_cookie(self, app, session):258 """Indicates weather a cookie should be set now or not. This is258 """Indicates whether a cookie should be set now or not. This is259 used by session backends to figure out if they should emit a260 set-cookie header or not. The default behavior is controlled by261 the ``SESSION_REFRESH_EACH_REQUEST`` config variable. If262 it's set to `False` then a cookie is only set if the session is
105 unmodified lines