I've set a cookie and can see it in my browser. I couldn't find anyway to remove it. What I've tried was:
deleteCookie, _ := r.Cookie("login") deleteCookie.Value = "" deleteCookie.MaxAge = -1 http.SetCookie(w, deleteCookie)
But the cookie is still there with it's original value after running this code.