Commit b793ee7904d1322202a100b20be845383cc67c78

Authored by michael
1 parent 5154469b

passing userDetails array to Session::create instead of adding the array to the session afterwards


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@225 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 3 deletions
login.php
@@ -70,9 +70,7 @@ if ($loginAction == "loginForm") { @@ -70,9 +70,7 @@ if ($loginAction == "loginForm") {
70 case 1: 70 case 1:
71 // start the session 71 // start the session
72 $session = new Session(); 72 $session = new Session();
73 - $sessionID = $session->create($userDetails["user_id"]);  
74 - // add the user details array to the session  
75 - $_SESSION["userDetails"] = $userDetails; 73 + $sessionID = $session->create($userDetails);
76 74
77 // check for a location to forward to 75 // check for a location to forward to
78 if (isset($redirect) && strlen(trim($redirect))>0) { 76 if (isset($redirect) && strlen(trim($redirect))>0) {