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

Method get_cookie_httponly

src/flask/sessions.py:195–200  ·  view source on GitHub ↗

Returns True if the session cookie should be httponly. This currently just returns the value of the ``SESSION_COOKIE_HTTPONLY`` config var.

(self, app: Flask)

Source from the content-addressed store, hash-verified

193 return app.config["SESSION_COOKIE_PATH"] or app.config["APPLICATION_ROOT"] # type: ignore[no-any-return]
194
195 def get_cookie_httponly(self, app: Flask) -> bool:
196 """Returns True if the session cookie should be httponly. This
197 currently just returns the value of the ``SESSION_COOKIE_HTTPONLY``
198 config var.
199 """
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

Callers 1

save_sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected