The AjglSessionConcurrency component allows you to detect and control concurrent sessions for the same user.
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.
You have to override the default session authentication strategy with a composite strategy chains:
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.
If you need to integrate this library into your Symfony Framework app, you can install the AjglSessionConcurrencyBundle
This component is under the MIT license. See the complete license in the LICENSE file.











AjglSessionConcurrency is an ajgarlag initiative.
Issues and feature requests are tracked in the Github issue tracker.
How can I help you explore Laravel packages today?