from dataclasses import dataclass @dataclass(frozen=True, slots=True) class SessionCookie: domain: str include_subdomains: bool path: str secure: bool expires: int name: str value: str @dataclass(frozen=True, slots=True) class SessionValidation: exists: bool structurally_valid: bool fresh: bool is_usable: bool message: str