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

Method get_cookie_partitioned

src/flask/sessions.py:215–221  ·  view source on GitHub ↗

Returns True if the cookie should be partitioned. By default, uses the value of :data:`SESSION_COOKIE_PARTITIONED`. .. versionadded:: 3.1

(self, app: Flask)

Source from the content-addressed store, hash-verified

213 return app.config["SESSION_COOKIE_SAMESITE"] # type: ignore[no-any-return]
214
215 def get_cookie_partitioned(self, app: Flask) -> bool:
216 """Returns True if the cookie should be partitioned. By default, uses
217 the value of :data:`SESSION_COOKIE_PARTITIONED`.
218
219 .. versionadded:: 3.1
220 """
221 return app.config["SESSION_COOKIE_PARTITIONED"] # type: ignore[no-any-return]
222
223 def get_expiration_time(self, app: Flask, session: SessionMixin) -> datetime | None:
224 """A helper method that returns an expiration date for the session

Callers 1

save_sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected