There’s something else I want to try, but in the meantime here’s what ChatGPT says are possible reasons why the browser wouldn’t send up that exact cookie…any of these sounds like something you have configured?
A browser may choose not to send the provided cookie to the server in the following circumstances:
Non-Secure Context: - The Secure attribute indicates that the cookie should only be sent over HTTPS. If the request is made over HTTP, the cookie will not be sent.
Mismatch in Path: - The Path attribute specifies that the cookie should only be sent for requests that include the specified path (/ in this case). If a request is made to a path that doesn’t match, the cookie won’t be sent.
Cross-Site Requests and Same-Site Policy: - The SameSite=None attribute indicates that the cookie should be sent with cross-site requests. However, some browsers may impose additional restrictions or may not fully support SameSite=None, especially older browsers.
Cookie Expiry: - Although the specified expiration date is far in the future (2034), if the browser’s system clock is incorrect or set to a date beyond the cookie’s expiration, the cookie will be considered expired and won’t be sent.
JavaScript Access: - The HttpOnly attribute disallows JavaScript from accessing the cookie. Though this doesn’t affect the sending of the cookie in an HTTP request, it ensures that the cookie is protected against XSS attacks.
Browser-Specific Limits: - Browsers have limitations on the size and number of cookies that can be stored. If these limits are exceeded, some cookies may be discarded.
Privacy Measures and Extensions: - Privacy-focused browser configurations, user settings, or browser extensions may prevent certain cookies from being sent.
Request is a Subresource and the User is Blocking Cookies: - If the request is for a subresource (like an image, iframe, or script), and the user has a setting or a privacy tool active that blocks cookies for such requests, the cookie won’t be sent.
Third-Party Cookies Blocking: - If the request is a third-party request and the browser (or user settings) blocks third-party cookies, then the cookie won’t be sent even with SameSite=None.
User-Initiated Cookie Clearing: - If the user clears cookies manually or uses a setting that automatically clears cookies upon closing the browser, the cookie will not be sent in subsequent requests.