enable cookie sessions for the API, temporarily.