Verified Commit 73ec3010 authored by Richard Glosner's avatar Richard Glosner
Browse files

improve condition comment

parent 7c12fb6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class AuthenticationMiddleware(MiddlewareMixin):
        if (
            request.session.get(SESSION_KEY) is not None
            and now_ts - last_prolonged > PROLONG_AFTER
        ):  # checks whether user is assigned to the given session and prolong throttling
        ):  # checks fulfillment of non-empty session and throttling the prolonging time conditions
            request.session[PROLONG_ATTR] = now_ts
            request.session.set_expiry(
                settings.SESSION_COOKIE_AGE