wincorex/mysql-session-handler
Composer 安装命令:
composer require wincorex/mysql-session-handler
包简介
MySQL session handler for Nette Framework
README 文档
README
Custom PHP session handler for Nette Framework that uses MySQL database for storage.
Requirements
- nette/database 2.4+
- PHP 7.2+
Installation
Preferred way to install wincorex/mysql-session-handler is by using Composer:
$ composer require wincorex/mysql-session-handler:~dev-master
Setup
After installation:
-
Create the table sessions using SQL in sql/create.sql.
-
Register an extension in config.neon:
extensions: sessionHandler: Wincorex\Session\DI\MysqlSessionHandlerExtension sessionHandler: tableName: 'web_session' jsonDebug: true
Original source code
- Pematon GitHub
- MD5 hash is not applicated for easy debugging
Features
- For security reasons, Session ID is stored in the database as an MD5 hash.
- Multi-Master Replication friendly (tested in Master-Master row-based replication setup).
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-03