MCPcopy Create free account
hub / github.com/pallets/flask / get_cookie_name

Method get_cookie_name

tests/test_reqctx.py:233–237  ·  view source on GitHub ↗
(self, app)

Source from the content-addressed store, hash-verified

231 # requested url ends with the string "dynamic_cookie"
232 class PathAwareSessionInterface(SecureCookieSessionInterface):
233 def get_cookie_name(self, app):
234 if flask.request.url.endswith("dynamic_cookie"):
235 return "dynamic_cookie_name"
236 else:
237 return super().get_cookie_name(app)
238
239 class CustomFlask(flask.Flask):
240 session_interface = PathAwareSessionInterface()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected