Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 672 Bytes

readme.md

File metadata and controls

30 lines (22 loc) · 672 Bytes

Database SessionStorage

Database SessionStorage for Nette Framework

Instalation

The best way to install jedenweb/session-storage is using Composer:

$ composer require jedenweb/session-storage:~2.1.0

After that you have to register extension in config.neon.

extensions:
	sessionStorage: JedenWeb\SessionStorage\DI\DatabaseStorageExtension

Add table to your database

CREATE TABLE IF NOT EXISTS `session` (
	`id` varchar(64) NOT NULL,
	`timestamp` int(11) NOT NULL,
	`data` longtext NOT NULL,
	PRIMARY KEY (`id`),
	KEY `timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;