Using cookie instead of Basic Auth for each REST call.