MCPcopy
hub / github.com/pallets/flask / get_cookie_secure

Method get_cookie_secure

src/flask/sessions.py:202–206  ·  view source on GitHub ↗

Returns True if the cookie should be secure. This currently just returns the value of the ``SESSION_COOKIE_SECURE`` setting.

(self, app: Flask)

Source from the content-addressed store, hash-verified

200 return app.config["SESSION_COOKIE_HTTPONLY"] # type: ignore[no-any-return]
201
202 def get_cookie_secure(self, app: Flask) -> bool:
203 """Returns True if the cookie should be secure. This currently
204 just returns the value of the ``SESSION_COOKIE_SECURE`` setting.
205 """
206 return app.config["SESSION_COOKIE_SECURE"] # type: ignore[no-any-return]
207
208 def get_cookie_samesite(self, app: Flask) -> str | None:
209 """Return ``'Strict'`` or ``'Lax'`` if the cookie should use the

Callers 1

save_sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected