Clarity as standard. Start a conversation

Plain-English guide

Cookie security flags: what your site should set

When people hear cookies, they think of the consent banner. This guide is about something else: the small labels attached to each cookie that tell the browser how carefully to handle it. Those labels, called flags, cost nothing and are easy to overlook. Our check reads the flags on any cookies your home page sets, because a cookie without them is more exposed than it needs to be.

By Matt Rooney · 17/11/2026 · T19 Digital · 5 min read

The short version

  • Cookie flags tell the browser how carefully to guard each cookie.
  • Secure, HttpOnly and SameSite each close a different gap.
  • Consent banners and cookie flags are separate things that both matter.

Three flags, three jobs

The Secure flag tells the browser to send the cookie only over an encrypted https connection, never over plain http. Without it, a cookie could travel as readable text if a visitor ever reached an insecure version of your site, for example on a shared network. With it, the cookie stays inside the encrypted channel or is not sent at all.

The HttpOnly flag tells the browser not to let scripts on the page read the cookie. The server can still use it, which is all a login cookie needs, but code running in the browser cannot see it. If an unwanted script ever found its way onto a page, it could not simply read the visitor's login cookie and carry it off.

The SameSite flag controls whether the cookie is sent when a request comes from another website. Set sensibly, it stops other sites from triggering actions on yours while quietly using your visitor's logged-in session. Modern browsers apply a cautious default when the flag is missing, but setting it deliberately is better than relying on defaults that vary.

What our check looks at on your home page

On its single visit, the check notes any cookies your home page sets and reads the flags attached to each one. It does not log in, so it will not see cookies that only appear after someone signs in or adds something to a basket. A cookie set on the home page without Secure, HttpOnly or a sensible SameSite setting is noted as a finding, usually minor or medium depending on what the cookie appears to be for.

If your home page sets no cookies at all, there is nothing for this part of the check to report, which is a perfectly good result. Many static sites set none until a visitor agrees to analytics. In that case the more useful questions concern other parts of the result, such as headers or the certificate.

If your site has a members' area or a booking account, mention it in the conversation after the check. The cookies that matter most often live behind the login, out of reach of a passive scan, and deserve a look in their own right.

For example, a skin clinic in Leamington Spa

Say a small aesthetics and skin clinic in Leamington Spa has a site where clients log in to see upcoming appointments and complete a consultation form. The home page sets a session cookie as soon as anyone arrives, ready for when they sign in. The check finds that cookie lacks the HttpOnly and Secure flags.

On its own that is not an emergency, and nothing suggests misuse. But this is a site handling health-related questions, and the login cookie is exactly what an attacker would want if they ever got a script onto the page. Adding the flags is a small change in the site's settings. Once done, clients notice nothing, and the cookie is far better protected.

The private conversation also turns to the pages behind the login, which the passive check could not see. Those are looked at as a separate piece of work once the clinic has confirmed it owns the site. That keeps the passive check doing what it does well, while anything more probing waits for proper authority.

When flags are a footnote, and what to do next

If your site sets no cookies beyond the consent choice itself, or only sets analytics cookies after agreement, flags may be a minor point or not apply at all. And if the check has found serious items, such as outdated software or no https, those matter more. Flags are housekeeping that becomes important on sites with logins, accounts or payments.

Our free check takes about thirty seconds and will tell you whether your home page cookies are flagged. If they need attention alongside other issues, our Security fix starts from £295 + VAT, agreed before we start, with a re-scan to confirm. A care plan, from £29 a month + VAT for a website, keeps settings like these right as the site changes.

Questions we get on this

Do cookie flags replace a cookie consent banner?

No. Flags protect cookies technically; a consent banner asks permission before using cookies that are not essential. They do different jobs. For questions about what consent your site needs, speak to a professional adviser rather than relying on a website developer.

Can I set cookie flags myself?

Usually not through an ordinary website editor. Flags are set by the code or server that creates the cookie, so it tends to need whoever manages the site. On hosted builders, the platform controls most cookies and their flags.

Why does my home page set cookies before anyone logs in?

Some platforms start a session for every visitor, ready for a login or basket. Others set cookies for a chat tool or analytics. It is worth knowing which cookies exist and why, because each one is something to look after.

Will adding flags log my customers out?

It can, once, if an existing login cookie is replaced. Customers would simply sign in again. It is sensible to make the change at a quiet time and let regular users know if your site has many logged-in customers.

Three things like this, once a month

What actually changed for small businesses in tech, what to do about it, and the guides we publish. No pitch, and you can leave with one click.

Check your own website

A free, passive scan of your home page and public DNS records. You get a score in about thirty seconds.