protected function readSession()
    {
        $session    = array();
        $cookieName = sprintf(self::SESSION_COOKIE, $this->grantInfo['key']);
        $cookieValue = filter_input(INPUT_COOKIE, $cookieName);

        if (!empty($cookieValue))
        {
            parse_str(
                trim((get_magic_quotes_gpc() ? stripslashes($cookieValue) : $cookieValue), '"'),
                $session
            );
        }
        return $session;
    }