summaryrefslogtreecommitdiff
path: root/includes/engelsystem_provider.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-06-07 13:33:59 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-06-07 13:33:59 +0200
commit218b305a3e6b94c7a5bd551f67fe6d9bb05d5e79 (patch)
tree343a2893bf2b7bb7515c563664cb9964fee4a372 /includes/engelsystem_provider.php
parent183d660307e25b1de44f5559fb48e792b268aff5 (diff)
fix broken session creation
Diffstat (limited to 'includes/engelsystem_provider.php')
-rw-r--r--includes/engelsystem_provider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php
index cbc1cb1d..56d12de6 100644
--- a/includes/engelsystem_provider.php
+++ b/includes/engelsystem_provider.php
@@ -71,6 +71,9 @@ require_once realpath(__DIR__ . '/../includes/pages/user_shifts.php');
require_once realpath(__DIR__ . '/../vendor/parsedown/Parsedown.php');
+session_lifetime(24 * 60, preg_replace("/[^a-z0-9-]/", '', md5(__DIR__)));
+session_start();
+
gettext_init();
sql_connect($config['host'], $config['user'], $config['pw'], $config['db']);