Thanks for the advice, I was doing your first option as you can see by the commented out sections below. The cookie being deleted entirely makes my login system simpler though.
func Logout(w http.ResponseWriter, r *http.Request) {
//session, _ := store.Get(r, "inb201")
cookie, err := r.Cookie("inb201")
cookie.MaxAge = -1
fmt.Println(cookie, err)
http.SetCookie(w, cookie)
// session.Values["ID"] = ""
// session.Values["Pw"] = ""
// session.Save(r, w)
http.Redirect(w, r, "/", http.StatusFound)
}
Thanks for the help! (And thanks for making a kick ass toolkit!)
Cheers,
Aaron