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

JedenWeb/SessionStorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;