From 3354d45762bbe0db33e3d26d8997e6f6624f24d7 Mon Sep 17 00:00:00 2001 From: winter Sparkles Date: Sun, 9 Aug 2026 02:26:33 +0100 Subject: implement sessions and also log in/out session data is stored in sqlite, not using php sessions --- webroot/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webroot/index.php') diff --git a/webroot/index.php b/webroot/index.php index dd8a6d9..eda73c2 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -18,6 +18,8 @@ $path = explode('?', $path, 2)[0]; $config = parse_ini_file(__DIR__ . '/../config.ini', true, INI_SCANNER_TYPED); +Psso\Session::setDsn($config, 'sqlite:' . __DIR__ . '/../data/sessions.sqlite'); + require_once __DIR__ . '/../localisation.php'; Psso\XMLResponse::addStylesheet('../templates/index.xsl'); -- cgit v1.3