gin-sessions
gin-sessions copied to clipboard
PANIC: securecookie: the value is not valid
I noticed you panic, when the client cookie cannot be verified due to a change in the key used for creating the secure cookie. Do you have an idea how to delete the cookie stored in the client browser, because i tried doing it using something like the following
if cookie, err := c.Request.Cookie("udeyhere"); err != nil {
cookie.MaxAge = -1
http.SetCookie(c.Writer, cookie)
// session.Delete("uid")
option := sessions.Options{
MaxAge: -1,
}
session.Options(option)
}
This did not work
bump