SameSite Cookies icon
Possibly abandoned Tested up to 6.3.14 #20 in cookies

SameSite Cookies

CSRF-protection for authentication cookies. When enabled, this plugin makes sure the "SameSite" flag is set in authentication cookies.

Active installs700+100+ tier
Downloads · 30d286▲ +33.6% vs prev. 30d
Rating2.5/511 reviews
Health score29/100At risk
All-time downloads25.3KSince May 2019
Support resolved—No recent threads
RequiresWP 6.2PHP 7.0+
Downloads · 7d54▼ -34.1% week over week
Our verdict

Consider an alternative

SameSite Cookies shows warning signs in 2026 — compare the alternatives below before installing. It runs on 700+ sites, is rated 2.5/5 and was last updated 3 years ago, and scores 29/100 on our health check.

  • Small user base (700+ active installs)
  • Mixed reviews — 2.5/5 from 11 ratings
  • No update in 3 years
  • Only tested up to WordPress 6.3 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

71421Aug 20Oct 3Nov 17
Yesterday8
Daily average (1y)9
Peak day95May 4, 2026
Last 12 months3.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where SameSite Cookies stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
cookies >100 4,502 Best cookies plugins →
csrf #92 1,019 Best csrf plugins →
samesite #9 166 Best samesite plugins →
security >100 10,000 Best security plugins →

Version adoption

Share of active sites per release.

  • 2.183.1%
  • 1.514.0%
  • 1.43.0%

Rating breakdown

★★★★★★★★★★ 2.5 from 11 reviews

  • 5★36.4%
  • 4★0.00%
  • 3★0.00%
  • 2★9.1%
  • 1★54.5%

About SameSite Cookies

From the official readme · v2.1

Description

This plugin adds the “SameSite” cookie flag to WordPress’s authentication cookies. On supported browsers (all current IE, Edge, Chrome, and Firefox), this can effectively prevent all Cross-Site Request Forgery attacks throughout your WordPress site.

SameSite cookie flag support was added to PHP on version 7.3, but this plugin ships with a workaround to support all PHP versions WordPress supports.

There is no administrative UI provided: Activate this plugin, and you are all set!

You can configure the SameSite flag value from your WordPress configuration file. You cna pick a value from Lax (default), Strict, or None. You can read about SameSite cookies here.

To configure the SameSite flag value, edit your WordPress configuration file (wp-config.php), and add the following lines right above /** Sets up WordPress vars and included files. */.

define( 'WP_SAMESITE_COOKIE', 'Lax' ); // Pick from 'Lax', 'Strict', or 'None'.

Note that only the authentication cookies are affected. Regular cookies that your installed plugins set will not be affected, nor provide any meaningful value with SameSite flags.

Installation

  1. Install this plugin as you would with any other plugin.
  2. Enable it.
  3. There is no third step – From this point afterward, authentication cookies your WordPress site uses will contain SameSite flag, and you will be protected from CSRF attacks.

If you find this plugin useful, I’d appreciate you leaving a review on the plugin page.

Changelog

1.5

  • Fixes a cookie expiration issue that was reported multiple times in the issue queue. Thanks to Jamie Magin (@jamagin at GitHub).

2.0

  • Requires PHP 7.0+
  • Requires WordPress 6.2+
  • Synced pluggable code from upstream for better compatibility with hooks.

2.1

  • Minor readme.txt updates

Full changelog on WordPress.org →

Screenshots

Browser response containing the SameSite attribute in Setcookie headers.
Browser response containing the SameSite attribute in Setcookie headers.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best SameSite Cookies alternatives

All cookies plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Cookie Compliance for WordPress – Cookie Consent, GDPR & CCPA Cookie Compliance for WordPress Consent management for WordPress — GDPR, CCPA & ePrivacy, autoblocking, Google Consent… by Humanityco 800K+ ★★★★★★★★★★ 4.8 (3K) 2 days ago 82
2 WP Consent API WP Consent API Simple Consent API to read and register the current consent category. by Rogier Lankhorst 300K+ ★★★★★★★★★★ 5 (2) 1 week ago 80
3 Adapta RGPD Adapta RGPD La solución completa para el cumplimiento del RGPD y la LOPD GDD en español: Crea los… by Superadmin 40K+ ★★★★★★★★★★ 4.8 (105) 1 year ago 56
4 Asesor de Cookies RGPD para normativa europea Asesor de Cookies RGPD para normativa europea Gestiona el consentimiento de cookies con banner, inventario, scripts por categoría y… by cdoral 20K+ ★★★★★★★★★★ 3.9 (59) 4 weeks ago 74
5 Pressidium Cookie Consent Pressidium Cookie Consent Lightweight, user-friendly and customizable cookie consent banner to help you comply with… by pressidium 10K+ ★★★★★★★★★★ 4.7 (40) 4 weeks ago 78
6 Cookies and Content Security Policy Cookies and Content Security Policy Be fully GDPR and CCPA compliant through Content Security Policy. Blocks cookies and… by Johan Jonk Stenström 10K+ ★★★★★★★★★★ 4.9 (67) 2 weeks ago 79
7 Cookies for Comments Cookies for Comments Sets a cookie on a random URL that is then checked when a comment is posted. If the cookie… by Donncha O Caoimh (a11n) 10K+ ★★★★★★★★★★ 4.9 (18) 7 years ago 42
8 Cookie Bar Cookie Bar Cookie Bar allows you to discreetly inform visitors that your website uses cookies. by Brontobytes 10K+ ★★★★★★★★★★ 4.9 (23) 4 months ago 64
9 WF Cookie Consent WF Cookie Consent The wunderfarm-way to show how your website complies with the EU Cookie Law - very easy… by wunderfarm 10K+ ★★★★★★★★★★ 5 (27) 5 months ago 75
10 Axeptio – Cookie Banner – GDPR Consent & Compliance with a friendly touch Axeptio Axeptio | GDPR Cookie Banner - An Immersive Compliance Experience by Axeptio 8K+ ★★★★★★★★★★ 5 (4) 3 months ago 70

FAQ

SameSite Cookies: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Nov 18, 2026

Is SameSite Cookies free?

Yes. SameSite Cookies is free to download and use from the official WordPress.org plugin directory.

Is SameSite Cookies safe to use in 2026?

SameSite Cookies shows warning signs in 2026 — compare the alternatives below before installing. It runs on 700+ sites, is rated 2.5/5 and was last updated 3 years ago, and scores 29/100 on our health check.

How many websites use SameSite Cookies?

SameSite Cookies is active on 700+ WordPress websites and has been downloaded 25,296 times since it launched in May 2019. It was downloaded 286 times in the last 30 days.

Does SameSite Cookies work with WordPress 7.1?

SameSite Cookies is officially tested up to WordPress 6.3.14, while the latest release is 7.1.4. It may still work, but try it on a staging site first.

What PHP version does SameSite Cookies need?

SameSite Cookies requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was SameSite Cookies last updated?

The latest version, 2.1, was released on July 23, 2023 (3 years ago).

Who makes SameSite Cookies?

SameSite Cookies is developed and maintained by Ayesh Karunaratne.

What are the best alternatives to SameSite Cookies?

The most popular alternatives to SameSite Cookies are Cookie Compliance for WordP… (800K+ installs), WP Consent API (300K+ installs) and Adapta RGPD (40K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.