PHPackages                             userfrosting/session - 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. [Caching](/categories/caching)
4. /
5. userfrosting/session

AbandonedArchivedLibrary[Caching](/categories/caching)

userfrosting/session
====================

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

4.5.0(5y ago)247.6k↓73.3%2MITPHPPHP &gt;=7.1

Since Jul 23Pushed 5y ago4 watchersCompare

[ Source](https://github.com/userfrosting/session)[ Packagist](https://packagist.org/packages/userfrosting/session)[ Docs](https://github.com/userfrosting/session)[ RSS](/packages/userfrosting-session/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

Sessions module for UserFrosting 4
==================================

[](#sessions-module-for-userfrosting-4)

[![Latest Version](https://camo.githubusercontent.com/8d2d310175dcddac730e857421f2b70e63a6be61c4e9389b24b765fe2c295b5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7573657266726f7374696e672f73657373696f6e2e737667)](https://github.com/userfrosting/session/releases)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Join the chat at https://chat.userfrosting.com/channel/support](https://camo.githubusercontent.com/3ef275424b9a67f2277aea0eeb294f16f16660d8fc4073a0a988298d626d4c5a/68747470733a2f2f636861742e7573657266726f7374696e672e636f6d2f6170692f76312f736869656c642e7376673f6e616d653d5573657246726f7374696e67)](https://chat.userfrosting.com/channel/support)[![Donate](https://camo.githubusercontent.com/9b77bd2b1b19b6b8fcbff67c4cfa703b0ab2c936b33ce26d534e1222cbdcdea6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e253230436f6c6c6563746976652d446f6e6174652d626c75652e737667)](https://opencollective.com/userfrosting#backer)

BranchBuildCoverageStyle[master](https://github.com/userfrosting/session)[![](https://github.com/userfrosting/session/workflows/Build/badge.svg?branch=master)](https://github.com/userfrosting/session/actions?query=workflow%3ABuild)[![](https://camo.githubusercontent.com/cbd93e37e5315d6d0cdca86dc4b4154707a67999b3fe922c4721ff8f820683f2/68747470733a2f2f636f6465636f762e696f2f67682f7573657266726f7374696e672f73657373696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/userfrosting/session)[![](https://camo.githubusercontent.com/9725459ef3750124941f9cc7df33987274a705861d7a6985742b62b7d16e5f03/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f36303330313030382f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://github.styleci.io/repos/60301008)[develop](https://github.com/userfrosting/session/tree/develop)[![](https://github.com/userfrosting/session/workflows/Build/badge.svg?branch=develop)](https://github.com/userfrosting/session/actions?query=workflow%3ABuild) [![](https://camo.githubusercontent.com/c73c3ca95092128d0cd6f9d1999efcdc7c4746a9d8b7fc86da346df7acb46874/68747470733a2f2f636f6465636f762e696f2f67682f7573657266726f7374696e672f73657373696f6e2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/userfrosting/session)[![](https://camo.githubusercontent.com/52f2d246b766907b1cdb3b54dc830a0ef0e16bfffba3f74d5c6cd5c71102b05b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f36303330313030382f736869656c643f6272616e63683d646576656c6f70267374796c653d666c6174)](https://github.styleci.io/repos/60301008)Example usage:
--------------

[](#example-usage)

```
use Illuminate\Filesystem\Filesystem;
use Illuminate\Session\FileSessionHandler;
use UserFrosting\Session\Session;

// Use custom filesystem sessions
$fs = new FileSystem;
$handler = new FileSessionHandler($fs, \UserFrosting\APP_DIR . "/sessions");

// Creates a new wrapper for $_SESSION
$session = new Session($handler, $config['session']);

// Starts the session
$session->start();

// Set some values
$session['contacts.housekeeper.name']; = 'Alex "the man" Weissman';

// They're stored in array format...
print_r($session->all());

// Output is:
/*
[
    'contacts' => [
        'housekeeper' => [
            'name' => 'Alex "the man" Weissman'
        ]
    ]
];
*/

// Destroy the session, both in memory and on the persistence layer, and tell the browser to remove the cookie
$session->destroy();

```

[Style Guide](STYLE-GUIDE.md)
-----------------------------

[](#style-guide)

[Testing](RUNNING_TESTS.md)
---------------------------

[](#testing)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% 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.

###  Release Activity

Cadence

Every ~157 days

Recently: every ~167 days

Total

12

Last Release

1889d ago

Major Versions

1.0 → 4.0.02017-02-18

PHP version history (3 changes)1.0PHP &gt;=5.5.9

4.1.0PHP &gt;=5.6

4.3.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5004534?v=4)[Alex Weissman](/maintainers/alexweissman)[@alexweissman](https://github.com/alexweissman)

---

Top Contributors

[![lcharette](https://avatars.githubusercontent.com/u/2566513?v=4)](https://github.com/lcharette "lcharette (42 commits)")[![alexweissman](https://avatars.githubusercontent.com/u/5004534?v=4)](https://github.com/alexweissman "alexweissman (8 commits)")[![archey347](https://avatars.githubusercontent.com/u/9624744?v=4)](https://github.com/archey347 "archey347 (2 commits)")[![Silic0nS0ldier](https://avatars.githubusercontent.com/u/17376090?v=4)](https://github.com/Silic0nS0ldier "Silic0nS0ldier (1 commits)")

---

Tags

userfrostinguserfrosting-componentsessionuserfrosting

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/userfrosting-session/health.svg)

```
[![Health](https://phpackages.com/badges/userfrosting-session/health.svg)](https://phpackages.com/packages/userfrosting-session)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[illuminate/routing

The Illuminate Routing package.

1239.0M2.8k](/packages/illuminate-routing)[illuminate/cache

The Illuminate Cache package.

12936.5M1.7k](/packages/illuminate-cache)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

2119.7k](/packages/iazaran-smart-cache)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2013.2k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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