Closed yosa12978 closed 3 years ago
What are you expecting to happen? Deleting the values does not delete the cookie.
Values doesn't delete
The problem was happening because browser cached handler results. I solved this problem with disabling client caching
responseWriter.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") // HTTP 1.1.
responseWriter.Header().Set("Pragma", "no-cache") // HTTP 1.0.
responseWriter.Header().Set("Expires", "0") // Proxies.
Here is my logout function
when i try to call it for eg 2 times, session doesn't cleanup