12 lines
168 B
Go
12 lines
168 B
Go
package cookies
|
|
|
|
import "net/http"
|
|
|
|
func Expired(name string) http.Cookie {
|
|
return http.Cookie{
|
|
Name: name,
|
|
Path: "/",
|
|
MaxAge: -1, // expire the cookie
|
|
}
|
|
}
|