SameSite Cookies
CSRF-protection for authentication cookies. When enabled, this plugin makes sure the "SameSite" flag is set in authentication cookies.
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 & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where SameSite Cookies stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| cookies | >100 |
| csrf | #92 |
| samesite | #9 |
| security | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 2.5 from 11 reviews
About SameSite Cookies
From the official readme · v2.1Description
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
- Install this plugin as you would with any other plugin.
- Enable it.
- 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
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.
Best SameSite Cookies alternatives
All cookies plugins →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
