The value of the ``Domain`` parameter on the session cookie. If not set, browsers will only send the cookie to the exact domain it was set from. Otherwise, they will send it to any subdomain of the given value as well. Uses the :data:`SESSION_COOKIE_DOMAIN` config.
(self, app: Flask)
| 173 | return app.config["SESSION_COOKIE_NAME"] # type: ignore[no-any-return] |
| 174 | |
| 175 | def get_cookie_domain(self, app: Flask) -> str | None: |
| 176 | """The value of the ``Domain`` parameter on the session cookie. If not set, |
| 177 | browsers will only send the cookie to the exact domain it was set from. |
| 178 | Otherwise, they will send it to any subdomain of the given value as well. |
| 179 | |
| 180 | Uses the :data:`SESSION_COOKIE_DOMAIN` config. |
| 181 | |
| 182 | .. versionchanged:: 2.3 |
| 183 | Not set by default, does not fall back to ``SERVER_NAME``. |
| 184 | """ |
| 185 | return app.config["SESSION_COOKIE_DOMAIN"] # type: ignore[no-any-return] |
| 186 | |
| 187 | def get_cookie_path(self, app: Flask) -> str: |
| 188 | """Returns the path for which the cookie should be valid. The |