ajgl/session-concurrency

This package is abandoned and no longer maintained. The author suggests using the ajgl/session-concurrency package instead.

Symfony session authentication strategy to control concurrency

Maintainers

πŸ‘ ajgarlag

Package info

github.com/ajgarlag/AjglSessionConcurrency

pkg:composer/ajgl/session-concurrency

Statistics

Installs: 227

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.3.1 2015-03-25 20:11 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT daa3b1ff3ad4951947f7192e12b2496555e135fb

symfonysecuritysessionconcurrency

This package is auto-updated.

Last update: 2025-11-24 08:38:36 UTC


README

The AjglSessionConcurrency component allows you to detect and control concurrent sessions for the same user.

PR Reference

This feature has been submitted to the Symfony project in the PR #12810.

All your feedback and contributions to this repository will help me to improve the referenced PR.

Usage

You have to override the default session authentication strategy with a composite strategy chains:

  1. The concurrency control strategy
  2. The default strategy
  3. The register strategy

If you want to expire old sessions when the maximun number of allowed sessions is reached, you have to subscribe the SessionRegistryExpirationListener to the kernel.response event of your application HTTP kernel.

Symfony Bundle

If you need to integrate this library into your Symfony Framework app, you can install the AjglSessionConcurrencyBundle

License

This component is under the MIT license. See the complete license in the LICENSE file.

Badges

About

AjglSessionConcurrency is an ajgarlag initiative.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.