Commit ef28e40c authored by tbrehm's avatar tbrehm

Improved login function.

parent 472c2ccb
......@@ -185,6 +185,7 @@ class login_index {
$user = $app->db->toLower($user);
if ($loginAs) $oldSession = $_SESSION['s'];
session_regenerate_id();
$_SESSION = array();
if ($loginAs) $_SESSION['s_old'] = $oldSession; // keep the way back!
$_SESSION['s']['user'] = $user;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment