Database SessionHandler PHP class
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Database SessionHandler PHP class

Abstract DbSessionHandler. Test and working for MySQL. It uses PDO driver.

Recommended database session table

CREATE TABLE `sessions` (
	`id` varchar(63) CHARACTER SET ascii NOT NULL DEFAULT '',
	`data` text,
	`expire` int(10) unsigned DEFAULT NULL,
	PRIMARY KEY (`id`),
	KEY `expire` (`expire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;