---
title: "Comment by Damiano Bianda on \"Session Cookies: 7 Checks for Secure, HttpOnly, SameSite and Logout, and What a Pass Doesn't Prove\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove/6ae97dc57ca8e63fee07885b/comment/6ae9b473df2fb62ef87d1360"
---

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

Comment [Session Cookies: 7 Checks for Secure, HttpOnly, SameSite and Logout, and What a Pass Doesn't Prove](https://hashnode.com/posts/session-cookies-7-checks-for-secure-httponly-samesite-and-logout-and-what-a-pass-doesn-t-prove/6ae97dc57ca8e63fee07885b)

[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.
