예제 #1
0
 protected function initSessionParams(User $user)
 {
     $_SESSION['user_id'] = $user->getId();
     $_SESSION['user_user_name'] = $user->getUserName();
     $_SESSION['user_first_name'] = $user->getFirstName();
     $_SESSION['user_last_name'] = $user->getLastName();
     $_SESSION['user_last_login_date'] = $user->getLastLoginDate();
     $_SESSION['user_is_logged_in'] = true;
 }