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.3kMITPHP &gt;=5.3.9

Since Sep 1Compare

[ 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 Synced today

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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

2369d ago

### Community

Maintainers

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

### 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.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/web-profiler-bundle

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

2.3k160.5M1.2k](/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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[ecotone/symfony-bundle

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

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

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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