PHPackages                             lerni/samesite-cookie-patch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. lerni/samesite-cookie-patch

AbandonedArchivedLibrary[Security](/categories/security)

lerni/samesite-cookie-patch
===========================

SilverStripe 4.8 Composer installable patch to add SameSite Cookie - PR 9920 silverstripe/framework

01.5k

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lerni/samesite-cookie-patch)[ Packagist](https://packagist.org/packages/lerni/samesite-cookie-patch)[ RSS](/packages/lerni-samesite-cookie-patch/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Silverstripe 4.8 Composer installable patch for adding SameSite Cookie
======================================================================

[](#silverstripe-48-composer-installable-patch-for-adding-samesite-cookie)

This module patches according to [silverstripe/silverstripe-framework#9920](https://github.com/silverstripe/silverstripe-framework/pull/9920). **With [\#10335](https://github.com/silverstripe/silverstripe-framework/pull/10335) this is obsolet - 4.12 probable.**

- [https://www.youtube.com/watch?v=Fet6-IiX69E&amp;list=RDCMUCnUYZLuoy1rq1aVMwx4aTzw&amp;index=1](https://www.youtube.com/watch?v=Fet6-IiX69E&list=RDCMUCnUYZLuoy1rq1aVMwx4aTzw&index=1)
-
-

How it works
------------

[](#how-it-works)

As in the PR stated you need to add...

```
// e.g. src/app/_config.php
//...
use SilverStripe\Control\Cookie;
use SilverStripe\Control\Session;
//...

// new configuration property for Cookie
Cookie::config()->set('samesite', 'Lax');

// new configuration property for Session
Session::config()->set('cookie_samesite', 'Lax');

```

Requirements
------------

[](#requirements)

- SilverStripe ~4.8 (just tested with that)

Credits
-------

[](#credits)

Installation
------------

[](#installation)

Use [composer](https://getcomposer.org/): `composer require lerni/samesite-cookie-patch`

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e68b89567976eada21fddc5e776f4adcbe15ad846150cbcde6eb24bc185a8e5f?d=identicon)[lerni](/maintainers/lerni)

---

Top Contributors

[![lerni](https://avatars.githubusercontent.com/u/472115?v=4)](https://github.com/lerni "lerni (9 commits)")

---

Tags

cookiesamesitesilverstripe

### Embed Badge

![Health badge](/badges/lerni-samesite-cookie-patch/health.svg)

```
[![Health](https://phpackages.com/badges/lerni-samesite-cookie-patch/health.svg)](https://phpackages.com/packages/lerni-samesite-cookie-patch)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
