protected function prepareCookie(string $name, string $value)
    {
        return new Cookie(
            $name,
            $value,
            0,
            $this->sessionSettings['cookie']['lifetime'],
            $this->sessionSettings['cookie']['domain'],
            $this->sessionSettings['cookie']['path'],
            $this->sessionSettings['cookie']['secure'],
            $this->sessionSettings['cookie']['httponly']
        );
    }