---
title: "Browsers will ignore some cookies"
description: "Some cookies break the rules browsers follow, so they are dropped and whatever they do, such as a basket or sign-in, fails."
url: https://ursy.com/issues/cookies-rejected/
updated: 2026-11-30T12:53:05+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/cookies-rejected/
---

# Browsers will ignore some cookies

> Some cookies break the rules browsers follow, so they are dropped and whatever they do, such as a basket or sign-in, fails.

Some [cookies](https://ursy.com/wiki/cookie/) break the rules browsers follow, so they are dropped and whatever they do, such as a basket or sign-in, fails.

## Why it matters {#why-it-matters}

Browsers follow the cookie standard and newer rules. For example, a cookie marked SameSite=None must also be Secure, cookies whose names start with __Secure- or __Host- have extra rules, and a site cannot set a cookie for another domain. A cookie that breaks these rules is simply dropped.

Nothing warns the visitor. The basket empties, the sign-in fails or a consent choice is forgotten, and it can be hard to see why.

## How to fix it {#how-to-fix-it}

Read the reason the Cookie Checker gives for each cookie, and fix it where the cookie is set: the server, a plugin or a script. Usual fixes are adding Secure, removing a wrong Domain value or using a valid SameSite value.

Test the feature again in a private window after the change.

### What the problem looks like {#what-the-problem-looks-like}

```
Set-Cookie: consent=yes; Path=/; SameSite=None
Set-Cookie: __Host-session=abc123; Path=/; Domain=example.com; Secure
```

SameSite=None without Secure, and a __Host- cookie with a Domain: browsers drop both.

### What it looks like fixed {#what-it-looks-like-fixed}

```
Set-Cookie: consent=yes; Path=/; Secure; SameSite=Lax
Set-Cookie: __Host-session=abc123; Path=/; Secure; HttpOnly; SameSite=Lax
```

Secure added, and the __Host- cookie has Secure, Path=/ and no Domain, as its rules require.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
Help me fix cookies that browsers drop on [your website address], built with [your platform, e.g. WordPress with WooCommerce]. A checker says some cookies break the rules browsers follow, so what they do, such as a basket or sign-in, silently fails. First, ask me for the checker's reasons, and read the Set-Cookie headers with "curl -sI [the page address]" (or ask me to paste them). For each dropped cookie, explain in plain words which rule it breaks: SameSite=None without Secure, a Secure cookie sent over http, a Domain that does not cover the site, a __Secure- or __Host- name without its required flags, or a size over 4096 bytes. Tell me what most likely sets each one. Then give the exact fix at each source. Rules: keep cookie names unless renaming is the only fix, keep cookies the site needs, and back up first. Remind me to test in a private window. Finally, tell me to re-check with the URSY.com Cookie Checker at ursy.com/cookie-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Check the COOKIE_DOMAIN line in wp-config.php, if there is one: a value that does not cover your site address makes browsers drop the cookies. Other cookies come from plugins, so check their settings.

### Your server or hosting {#your-server-or-hosting}

In PHP, set session.cookie_secure and session.cookie_samesite in php.ini, or pass secure, samesite and domain options to setcookie(). Check any cookie rules in the server or proxy configuration.

## Check it is fixed {#check-it-is-fixed}

Run the Cookie Checker again: it should list no cookies browsers will ignore. Test the basket, sign-in and consent banner in a private window.

## Official source {#official-source}

[MDN: Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)

## Questions {#questions}

### Why is there no error message? {#why-is-there-no-error-message}

Browsers drop a rule-breaking cookie quietly. The browser's developer tools can show a warning, but visitors see nothing.

### Why does the basket work for me but not for customers? {#why-does-the-basket-work-for-me-but-not-for-customers}

Browsers differ, and you may be using an older cookie that still works. Test in a private window in more than one browser.

---

**Cite this page:** Browsers will ignore some cookies. URSY.com. Updated 30 November 2026. https://ursy.com/issues/cookies-rejected/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[Browsers will ignore some cookies](https://ursy.com/issues/cookies-rejected/), URSY.com`. One section: add its id, for example https://ursy.com/issues/cookies-rejected/#section-id (every heading above has one).

Section links: https://ursy.com/citations/4/#p-5792 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/cookies-rejected/
- As JSON: https://ursy.com/issues/cookies-rejected/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
