WIP on wkParticipo: 7765a9e geändert: index.php

This commit is contained in:
Marko Bunzel
2019-07-27 17:11:46 +02:00
15 changed files with 131 additions and 100 deletions

View File

@@ -1,7 +1,5 @@
<?php
session_start([
'cookie_lifetime' => 86400, // 86400s sind 24h
]);
session_start();
session_regenerate_id();
// Falls der serverseitige Logincookie nicht gesetzt ist, leite zur
if (empty($_SESSION['login'])) {
@@ -14,5 +12,6 @@
"Sie sind als <strong>".htmlspecialchars($_SESSION['user']['username'])."</strong> angemeldet.<br />".
"<a href=\"./logout.php\">Sitzung beenden</a>".
"</div>";
//<div style=\"border: 1px solid black\">".var_export($_SESSION, true)."</div>";
}
?>