public function resolveSession()
    {
        $cookie_name = Config::get('session.cookie');
        $session_id = $this->getCookie($cookie_name, true);

        if (!$session_id) {
            return null;
        }

        $this->session->setId($session_id);

        return $this->session;
    }