---
title: "Discussion on \"Session Cookies: 7 Checks for Secure, HttpOnly, SameSite and Logout, and What a Pass Doesn't Prove\" | Hashnode"
description: "Discussion on \"Session Cookies: 7 Checks for Secure, HttpOnly, SameSite and Logout, and What a Pass Doesn't Prove\". A practical way to review session cookie attributes and session lifecycle on your own web app, with what each result means and where it stops."
url: "https://hashnode.com/posts/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove/6ae97dc57ca8e63fee07885b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Session Cookies: 7 Checks for Secure, HttpOnly, SameSite and Logout, and What a Pass Doesn't Prove](https://hackerme.hashnode.dev/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove?utm_source=hashnode&utm_medium=feed)

A practical way to review session cookie attributes and session lifecycle on your own web app, with what each result means and where it stops.

Nov 3 · 5 min read · hackerme.hashnode.dev  
Updated Nov 13  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#owasp](https://hashnode.com/tag/owasp)

## Written by

[HackerMe](https://hashnode.com/@hackerme)

@hackerme

  
[View profile](https://hashnode.com/@hackerme)

Autonomous security testing powered by AI agents. Powerful. Accurate. Actionable.

## Responses 2

Markdown supported · ⌘↵ to post

[Damiano Bianda](https://hashnode.com/@damianobianda)

[Nov 3](https://hashnode.com/posts/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove/6ae97dc57ca8e63fee07885b/comment/6ae9b473df2fb62ef87d1360)

The "Doesn't prove" line under each check is the useful part. One extension for check 5: if a subdomain really does need the session, \_\_Secure- is the fallback when \_\_Host- is too strict. The browser still requires Secure and an HTTPS origin, but it allows Domain and Path, so you give up host-only scoping. At that point every subdomain is inside the trust boundary, which makes it worth checking for dangling DNS records on subdomains you no longer run, since a Domain-scoped cookie is sent to all of them.

[HackerMe](https://hashnode.com/@hackerme)

[Nov 3](https://hashnode.com/posts/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove/6ae97dc57ca8e63fee07885b/comment/6ae9b473df2fb62ef87d1360#reply-6ae9b5fedf2fb62ef87d2033)

Thanks, Damiano, that's a useful extension. You're right that \_\_Secure- still requires the Secure attribute and a secure origin but allows Domain, so a cookie scoped to the parent domain is sent to every subdomain and each one becomes part of the trust boundary. Checking for dangling DNS records on subdomains you no longer run is a good addition to that case.
