janharsa/mysql-session-handler

MySQL session handler for Nette Framework with Nextras Dbal

2.0.2 2024-01-17 12:54 UTC

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

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