ClearCookie
Expire a client cookie (or all cookies if left empty)
- c.ClearCookie(key ...string)
- app.Get("/", func(c *fiber.Ctx) {
- // Clears all cookies:
- c.ClearCookie()
- // Expire specific cookie by name:
- c.ClearCookie("user")
- // Expire multiple cookies by names:
- c.ClearCookie("token", "session", "track_id", "version")
- })