php-db-session-handler
php-db-session-handler copied to clipboard
Database SessionHandler PHP class
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;