From b793ee7904d1322202a100b20be845383cc67c78 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 15 Jan 2003 15:23:31 +0000 Subject: [PATCH] passing userDetails array to Session::create instead of adding the array to the session afterwards --- login.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/login.php b/login.php index bb3fe54..030f0b2 100644 --- a/login.php +++ b/login.php @@ -70,9 +70,7 @@ if ($loginAction == "loginForm") { case 1: // start the session $session = new Session(); - $sessionID = $session->create($userDetails["user_id"]); - // add the user details array to the session - $_SESSION["userDetails"] = $userDetails; + $sessionID = $session->create($userDetails); // check for a location to forward to if (isset($redirect) && strlen(trim($redirect))>0) { -- libgit2 0.21.4