get_cookie_path() — flask Function Reference
Architecture documentation for the get_cookie_path() function in sessions.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD b6687bcd_1618_cb97_0b08_4df52250e96d["get_cookie_path()"] bbf56873_bd71_6e70_f44c_ca8a85b0a007["SessionInterface"] b6687bcd_1618_cb97_0b08_4df52250e96d -->|defined in| bbf56873_bd71_6e70_f44c_ca8a85b0a007 58643c3f_4184_c18b_8361_a7d628d93359["save_session()"] 58643c3f_4184_c18b_8361_a7d628d93359 -->|calls| b6687bcd_1618_cb97_0b08_4df52250e96d style b6687bcd_1618_cb97_0b08_4df52250e96d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/sessions.py lines 201–207
def get_cookie_path(self, app: Flask) -> str:
"""Returns the path for which the cookie should be valid. The
default implementation uses the value from the ``SESSION_COOKIE_PATH``
config var if it's set, and falls back to ``APPLICATION_ROOT`` or
uses ``/`` if it's ``None``.
"""
return app.config["SESSION_COOKIE_PATH"] or app.config["APPLICATION_ROOT"] # type: ignore[no-any-return]
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_cookie_path() do?
get_cookie_path() is a function in the flask codebase, defined in src/flask/sessions.py.
Where is get_cookie_path() defined?
get_cookie_path() is defined in src/flask/sessions.py at line 201.
What calls get_cookie_path()?
get_cookie_path() is called by 1 function(s): save_session.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free