Update CookieAuthenticate.php