func Logout(res http.ResponseWriter, req *http.Request) error {
	session, err := Store.Get(req, SessionName)
	if err != nil {
		return err
	}
	session.Options.MaxAge = -1
	session.Values = make(map[interface{}]interface{})
	err = session.Save(req, res)
	if err != nil {
		return errors.New("could not delete user session")
	}
	return nil
}
// Logout invalidates a user session.
Logout invalidates a user session.
// Logout invalidates a user session .
func Logout(res http.ResponseWriter, req *http.Request) error {
	session, err := Store.Get(req, SessionName)
	if err != nil {
		return err
	}
	session.Options.MaxAge = -1
	session.Values = make(map[interface{}]interface{})
	err = session.Save(req, res)
	if err != nil {
		return errors.New("could not delete user session")
	}
	return nil
}
func Logout ( res http . ResponseWriter , req * http . Request ) error { session , err := Store . Get ( req , SessionName ) if err != nil { return err } session . Options . MaxAge = - 1 session . Values = make ( map [ interface { } ] interface { } ) err = session . Save ( req , res ) if err != nil { return errors . New ( " " ) } return nil }
Logout invalidates a user session.
Logout invalidates a user session .