Store PHP sessions in the database

This commit is contained in:
Frédéric Guillot
2017-12-06 16:19:11 -08:00
committed by Frédéric Guillot
parent 421531bd4f
commit ccd177ada6
58 changed files with 405 additions and 382 deletions

View File

@@ -8,7 +8,17 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 126;
const VERSION = 127;
function version_127(PDO $pdo)
{
$pdo->exec("CREATE TABLE sessions (
id VARCHAR(255) NOT NULL,
expire_at INT NOT NULL,
data LONGTEXT,
PRIMARY KEY(id)
) ENGINE=InnoDB CHARSET=utf8");
}
function version_126(PDO $pdo)
{