PHPackages                             requestum/user-single-session-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. requestum/user-single-session-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

requestum/user-single-session-bundle
====================================

Symfony RequestumUserSingleSessionBundle

051PHP

Since Aug 25Pushed 9y ago3 watchersCompare

[ Source](https://github.com/requestum-team/UserSingleSessionBundle)[ Packagist](https://packagist.org/packages/requestum/user-single-session-bundle)[ RSS](/packages/requestum-user-single-session-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

requestum/user-single-session-bundle
====================================

[](#requestumuser-single-session-bundle)

DESCRIPTION
-----------

[](#description)

RequestumUserSingleSessionBundle logout user if under his account entered again.

RequestumUserSingleSessionBundle is storage agnostic, meaning it can work with several storage mechanisms. Bundle works with User entity. You may use a Custom implementation of User class, or one based on the FOSUserBundle.

INSTALLATION
------------

[](#installation)

Use composer to manage your dependencies and download RequestumUserSingleSessionBundle.

Add this code to you `composer.json` file:

```
"require": {
        ...
        "requestum/user-single-session-bundle": "dev-master"
}

```

And add this code to repository section:

```
"repositories": [
        ...
        {
            "type": "git",
            "url": "git@gitlab.requestum.com:yadviha.khoshtaria/single-session-bundle.git"
        }
]

```

Then only run `composer update` or `php composer.phar update` command in root of your project.

CONFIGURATION
-------------

[](#configuration)

YAML:

```
    requestum_user_single_session:
        storage: ???
        failure_action:
            type: ???
            template: ???

```

DOCUMENTATION
-------------

[](#documentation)

Option `storage:`
-----------------

[](#option-storage)

Option `storage` is configure what storage you want use for storing tokens. By default allow two values: `memcached` and `entity`. If option had not set by default using `entity` value.

```
    requestum_user_single_session:
        storage: ???
        ...

```

If you chose `entity` storage. You User entity must implements `SingleSessionUserInterface`

If you chose `memcached` storage. You must add to you `parameters.yml` next code:

```
# Default host and port for memcached

memcached.servers:
        ...
        - { host: 127.0.0.1, port: 11211 }
        ...

```

If you want using you own storage? you only need create service that is implementation of `TokenIdManagerInterface`and write its id in `storage:` option.

Option `failure_action:`
------------------------

[](#option-failure_action)

Option `failure_action` is configure what must doing bundle if user account re-authorized. Option `type` is required and can takes `logout` or `view` values.

```
requestum_user_single_session:
            failure_action:

                    # Required option
                    type:

                    # Required if choose 'view' type
                    template:

```

Option `template:` required if choose `type: view` and accepts a template address.

If you chose `logout` type, you must have `logout` route in you application.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/1530d28e923ae84b9e03c724f7cb97529cd06238c7466bfea6bc4c4e7bc0532f?d=identicon)[admins@requestum.com](/maintainers/admins@requestum.com)

---

Top Contributors

[![abychek](https://avatars.githubusercontent.com/u/12564632?v=4)](https://github.com/abychek "abychek (4 commits)")[![stavichenko](https://avatars.githubusercontent.com/u/5190500?v=4)](https://github.com/stavichenko "stavichenko (1 commits)")[![Vasia-Gav](https://avatars.githubusercontent.com/u/5128278?v=4)](https://github.com/Vasia-Gav "Vasia-Gav (1 commits)")

### Embed Badge

![Health badge](/badges/requestum-user-single-session-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/requestum-user-single-session-bundle/health.svg)](https://phpackages.com/packages/requestum-user-single-session-bundle)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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