Path 1: 346 calls (1.0)

Flask (342) test_session_dynamic_cookie_name..CustomFlask (4)

None (344) '.example.com' (2)

1def get_cookie_domain(self, app: Flask) -> str | None:
2        """The value of the ``Domain`` parameter on the session cookie. If not set,
3        browsers will only send the cookie to the exact domain it was set from.
4        Otherwise, they will send it to any subdomain of the given value as well.
5
6        Uses the :data:`SESSION_COOKIE_DOMAIN` config.
7
8        .. versionchanged:: 2.3
9            Not set by default, does not fall back to ``SERVER_NAME``.
10        """
11        rv = app.config["SESSION_COOKIE_DOMAIN"]
12        return rv if rv else None