Nabeel
11/04/2022, 5:25 AMrp
11/04/2022, 5:27 AMNabeel
11/04/2022, 5:33 AMsession.VerifySession(options, func(rw http.ResponseWriter, r *http.Request) {
c.Request = c.Request.WithContext(r.Context())
c.Next()
})(c.Writer, c.Request)
// we call Abort so that the next handler in the chain is not called, unless we call Next explicitly
c.Abort()
function of session package in our authenticate middleware, the this function isn't invalidating the cookies of the signed-out sessionrp
11/04/2022, 5:34 AMNabeel
11/04/2022, 5:37 AM