Create a session in the constructor and use that instead of a new request. This should solve all our cookie problems and the edge case of logout() returning an ambiguous 403, since it lets the server decide on cookie management and delete them on actual logout.
Create a session in the constructor and use that instead of a new
request
. This should solve all our cookie problems and the edge case oflogout()
returning an ambiguous 403, since it lets the server decide on cookie management and delete them on actual logout.Example: https://stackoverflow.com/a/21737086