src/Modules/Auth/User.php
public function login(Auth $auth, $duration = 0 /*, Response $response = NULL, $duration = 0*/)
    {
        $user_groups = serialize($auth->getUserGroups());
        $user_id     = $auth->getUserId();
        $user_name   = $auth->getUserName();

        $this->session->migrate(false, $duration);

        $this->session->set(self::USER_ID, $user_id);
        $this->session->set(self::USER_NAME, $user_name);
        $this->session->set(self::USER_GROUPS, $user_groups);
    }
public function login(Auth $auth, $duration = 0 /*, Response $response = NULL, $duration = 0*/)
    {
        $user_groups = serialize($auth->getUserGroups());
        $user_id     = $auth->getUserId();
        $user_name   = $auth->getUserName();

        $this->session->migrate(false, $duration);

        $this->session->set(self::USER_ID, $user_id);
        $this->session->set(self::USER_NAME, $user_name);
        $this->session->set(self::USER_GROUPS, $user_groups);
    }
@param Auth $auth
@param integer $duration

@return Response|void