nabeel4628
11/04/2022, 5:25 AMrp_st
11/04/2022, 5:27 AMrp_st
11/04/2022, 5:27 AMrp_st
11/04/2022, 5:28 AMnabeel4628
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_st
11/04/2022, 5:34 AMrp_st
11/04/2022, 5:34 AMrp_st
11/04/2022, 5:34 AMrp_st
11/04/2022, 5:34 AMrp_st
11/04/2022, 5:35 AMrp_st
11/04/2022, 5:35 AMnabeel4628
11/04/2022, 5:37 AM