Removed cookie-based API code which caused an error on Windows in some cases