Update `CookieStore` so that `$config` is now optional