Home  /  Learn  /  Cookie Security — Secure, HttpOnly & SameSite Flag

Cookie Security — Secure, HttpOnly & SameSite Flags

This intelligence module checks the security flags on your site's cookies — Secure, HttpOnly, and SameSite — three small attributes that determine whether a session token can be stolen through a compromised network, read by malicious JavaScript, or hijacked via cross-site requests.
🌿 Beginner — Plain English explanations

Cookies hold the keys to a logged-in session

When you log into a website, it typically gives your browser a cookie — a small piece of data that proves you're logged in on every subsequent request, so you don't have to re-enter your password on every page. If that cookie is stolen, whoever has it can impersonate the logged-in user without ever knowing their password. Three flags control exactly how exposed that cookie is.

The three flags PEKRYON checks

FlagPlain English
SecureEnsures the cookie is only ever sent over an encrypted HTTPS connection, never over plain HTTP where it could be intercepted.
HttpOnlyBlocks JavaScript from reading the cookie at all — meaning that even if an attacker manages to inject malicious script onto your page, they still can't steal the session cookie through it.
SameSiteControls whether the cookie is sent when a request originates from a different site — a key defence against cross-site request forgery (CSRF).

Why this matters

These three flags cost nothing to set and require no changes to how your site actually functions for legitimate visitors — they're a pure security upgrade with no user-facing tradeoff, which makes missing flags one of the more inexcusable gaps a scan can find.

How to fix it

Most modern web frameworks set these flags by default on session cookies, or make them a single configuration option. Custom or legacy cookie-setting code is the most common place these get missed.

Check Your Website Now — Free

PEKRYON scans your website across 26 modules. We take the time needed for accurate results — no server access needed.

Scan My Website Free →  Learn More