// LogoutUser logs out a user by removing the session cookies containing their
// auth token.
LogoutUser logs out a user by removing the session cookies containing their
auth token.
// LogoutUser logs out a user by removing the session cookies containing their // auth token .
func (lm *LoginManager) LogoutUser(ctx *dispatch.Context) {
	authCookie := &http.Cookie{
		Name:  "dispatch-auth",
		Value: "removed",
		HttpOnly: true,
		SameSite: http.SameSiteStrictMode,
		MaxAge:   -1,
	}
	ctx.Writer.Header().Add("Set-Cookie", authCookie.String())
	loggedInCookie := &http.Cookie{
		Name:  "dispatch-logged-in",
		Value: "false",
		Path:  "/",
	}
	ctx.Writer.Header().Add("Set-Cookie", loggedInCookie.String())
}
func ( lm * LoginManager ) LogoutUser ( ctx * dispatch . Context ) { authCookie := & http . Cookie { Name : " " , Value : " " , HttpOnly : true , SameSite : http . SameSiteStrictMode , MaxAge : - 1 , } ctx . Writer . Header ( ) . Add ( " " , authCookie . String ( ) ) loggedInCookie := & http . Cookie { Name : " " , Value : " " , Path : " " , } ctx . Writer . Header ( ) . Add ( " " , loggedInCookie . String ( ) ) }
LogoutUser logs out a user by removing the session cookies containing their
auth token.
LogoutUser logs out a user by removing the session cookies containing their auth token .
// Secure: true,