janharsa / mysql-session-handler
MySQL session handler for Nette Framework with Nextras Dbal
Installs: 4 484
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 1
Requires
- php: >=8.1
- nette/di: >=2.2
- nextras/dbal: >=3.0
This package is auto-updated.
Last update: 2024-10-17 14:47:00 UTC
README
Custom MySQL session handler uses Nextras/DBAL and Nette DI
Requirements
- nextras/dbal 3.0+
- nette/di 2.2+
- PHP 8.2+
Installation
Use Composer to install package janharsa/mysql-session-handler:
$ composer require janharsa/mysql-session-handler:~1.0
Setup
Register an extension in config.neon:
extensions: sessionHandler: JanHarsa\Session\DI\MysqlSessionHandlerExtension
Default table name is 'sessions'. Can be changeg with adding this on the config.local.neon
sessionHandler: tableName: session_in_database