定制 ajgl/session-concurrency 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ajgl/session-concurrency

最新稳定版本:0.3.1

Composer 安装命令:

composer require ajgl/session-concurrency

包简介

Symfony session authentication strategy to control concurrency

README 文档

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

  • Travis CI: Build Status
  • Poser Latest Stable Version: Latest Stable Version
  • Poser Latest Unstable Version Latest Unstable Version
  • Poser Total Downloads Total Downloads
  • Poser Monthly Downloads Montly Downloads
  • Poser Daily Downloads Daily Downloads
  • Poser License License
  • Scrutinizer Quality Scrutinizer Code Quality
  • Scrutinizer Code Coverage Code Coverage
  • SensioLabs Insight Quality SensioLabsInsight
  • VersionEye Dependency Status Dependency Status

About

AjglSessionConcurrency is an ajgarlag initiative.

Reporting an issue or a feature request

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

统计信息

  • 总下载量: 227
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-16