I am trying to remove a cookie called "session" to logout a user.
request.cookies.pop('session', None)
response.set_cookie('session', '', max_age=-100, domain='.example.org')
response.set_cookie('session', '', max_age=-100, domain='www.example.org')
response.delete_cookie('session', '', domain='.example.org')
response.delete_cookie('session', '', domain='www.example.org')
As you can see, I am literally trying everything right now.
Nothing seems to erase the cookie.
Any help is appreciated.
Thank you!