PHPackages                             lionware/symfony-session-timeout - 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. lionware/symfony-session-timeout

ActiveLibrary[Security](/categories/security)

lionware/symfony-session-timeout
================================

Invalidate Symfony sessions based on inactivity for a certain period of time

v1.0.3(6y ago)1637.5k4[1 issues](https://github.com/LionwareSolutions/symfony-session-timeout/issues)MITPHPPHP &gt;=5.3.9

Since Sep 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/LionwareSolutions/symfony-session-timeout)[ Packagist](https://packagist.org/packages/lionware/symfony-session-timeout)[ RSS](/packages/lionware-symfony-session-timeout/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Symfony session timeout
=======================

[](#symfony-session-timeout)

Invalidate Symfony sessions based on inactivity for a certain period of time.

This does not make use of garbage collection as suggested in [http://symfony.com/doc/current/components/http\_foundation/session\_configuration.html#session-idle-time-keep-alive](http://symfony.com/doc/current/components/http_foundation/session_configuration.html#session-idle-time-keep-alive). This method is more accurate and does not depend on garbage collection parameters to function well.

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

[](#installation)

Add SymfonySessionTimeout in your composer.json

```
{
    "require": {
        "lionware/symfony-session-timeout": "*"
    }
}
```

Register the bundle in your `app/AppKernel.php`:

```
public function registerBundles()
{
    $bundles = array(
        // ...
        new Lionware\SymfonySessionTimeoutBundle\LionwareSymfonySessionTimeoutBundle()
    );
)
```

Add the parameter in `app/config/parameters.yml` and set the value to your preferred expiration time (which is set to an hour in this example).

```
parameters:
    lionware_session_expiration_time: 3600
```

Add the configuration in `app/config/config.yml`

```
lionware_symfony_session_timeout:
    session:
        expiration_time: "%lionware_session_expiration_time%"
```

Notes
-----

[](#notes)

### Cookie expiration

[](#cookie-expiration)

Expiration of the cookie also means expiration of the session, therefore it is wise to set it to a relatively high value or 0 (valid for the length of the browser session).

```
# app/config/config.yml
framework:
    session:
        cookie_lifetime: 0
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~529 days

Total

4

Last Release

2414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38c8cb7756c7fcbd1c95c62bf0af5fb5f4571babdfa5e59a4b815f61d70c05bc?d=identicon)[nick.stemerdink](/maintainers/nick.stemerdink)

---

Top Contributors

[![NickStemerdink](https://avatars.githubusercontent.com/u/1737701?v=4)](https://github.com/NickStemerdink "NickStemerdink (6 commits)")[![Pheetbag](https://avatars.githubusercontent.com/u/29952264?v=4)](https://github.com/Pheetbag "Pheetbag (3 commits)")[![pjjm-jimenez](https://avatars.githubusercontent.com/u/29952264?v=4)](https://github.com/pjjm-jimenez "pjjm-jimenez (3 commits)")[![JoelTwilo](https://avatars.githubusercontent.com/u/26433156?v=4)](https://github.com/JoelTwilo "JoelTwilo (1 commits)")[![mpoiriert](https://avatars.githubusercontent.com/u/4175616?v=4)](https://github.com/mpoiriert "mpoiriert (1 commits)")

### Embed Badge

![Health badge](/badges/lionware-symfony-session-timeout/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k164.3M1.4k](/packages/symfony-web-profiler-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11258.2k1](/packages/ecotone-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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