PHPackages                             badcfe/partitioned-sessions - 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. badcfe/partitioned-sessions

ActiveLibrary

badcfe/partitioned-sessions
===========================

16PHP

Since Apr 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/natmchugh/FancySessionCookies)[ Packagist](https://packagist.org/packages/badcfe/partitioned-sessions)[ RSS](/packages/badcfe-partitioned-sessions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FancySessionCookies
===================

[](#fancysessioncookies)

PHP util to allow setting of partitioned cross site or third party cookies for PHP sessions

Why might I need this package?
------------------------------

[](#why-might-i-need-this-package)

You want to implement a session in PHP with the partitioned attribute.

This package also adds the prefixes `__Secure` and `__Host` to the session cookie name when they are appropriate.

How to use
----------

[](#how-to-use)

The idea is to use the session\_set\_cookie\_params() as you would normally in PHP to set nearly all the functionality of the library.

You can set a session cookie like this. `FancySessionCookies::startNewSession();`By default if the cookie could be set as partioned it will be.

Accessing a session is done using the default PHP methods e.g.

```
$_SESSION['last_access'] = time();

var_dump($_SESSION['last_access']);
// int(1713867921)

```

Is this necessary?
------------------

[](#is-this-necessary)

No it should not be but currently partitioned cookies for sessions will require an RFC to be accepted into PHPs core functions. This package is designed as stop gap till the RFC is accepted and then all instances of `FancySessionCookies::startNewSession();` can be replaced with `session_start()`

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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/914981f074a8a430bef88b285dc2d4a9e3a8528e32dfe21c5f15b689e96dacbc?d=identicon)[natmchugh](/maintainers/natmchugh)

---

Top Contributors

[![natmchugh](https://avatars.githubusercontent.com/u/191565?v=4)](https://github.com/natmchugh "natmchugh (12 commits)")

### Embed Badge

![Health badge](/badges/badcfe-partitioned-sessions/health.svg)

```
[![Health](https://phpackages.com/badges/badcfe-partitioned-sessions/health.svg)](https://phpackages.com/packages/badcfe-partitioned-sessions)
```

PHPackages © 2026

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