Session cookies are bearer credentials: anyone who obtains a valid session ID may be able to act as that user. OWASP recommends protecting cookies with Secure (send only over HTTPS), HttpOnly (not readable through client-side JavaScript), and SameSite=Strict or Lax (reduce cross-site cookie sending). SameSite is defence in depth, not a replacement for CSRF tokens. For a host-only session cookie, the __Host- prefix can add browser-enforced constraints: Secure, Path=/ and no Domain attribute. Applications should also rotate session IDs after authentication and privilege changes, and invalidate them on logout. These controls complement—not replace—XSS prevention, CSRF defences and server-side session expiry. Test them in systems where you have permission. Source: OWASP Foundation