gin-sessions icon indicating copy to clipboard operation
gin-sessions copied to clipboard

PANIC: securecookie: the value is not valid

Open osiloke opened this issue 11 years ago • 1 comments

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

osiloke avatar Oct 12 '14 12:10 osiloke

bump

dmix avatar May 15 '15 02:05 dmix