fix broken session creation

This commit is contained in:
Philip Häusler 2015-06-07 13:33:59 +02:00
parent 183d660307
commit 218b305a3e
3 changed files with 4 additions and 3 deletions

View File

@ -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']);

View File

@ -269,6 +269,7 @@ function guest_login() {
if ($ok) {
$_SESSION['uid'] = $login_user['UID'];
$_SESSION['locale'] = $login_user['Sprache'];
redirect(page_link_to('news'));
}
}

View File

@ -1,9 +1,6 @@
<?php
require_once realpath(__DIR__ . '/../includes/engelsystem_provider.php');
session_lifetime(24 * 60, preg_replace("/[^a-z0-9-]/", '', md5(__DIR__)));
session_start();
// JSON Authorisierung gewünscht?
if (isset($_REQUEST['auth']))
json_auth_service();