Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 704 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 704 Bytes

Mysql Session Handler

Custom MySQL session handler uses Nextras/DBAL and Nette DI

Requirements

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