Files
inventory-plus-plus/internal/site/cookie.go
T
2025-12-30 14:42:04 -07:00

12 lines
174 B
Go

package site
import "net/http"
func getExpiredCookie(name string) http.Cookie {
return http.Cookie{
Name: name,
Path: "/",
MaxAge: -1, // expire the cookie
}
}