12 lines
174 B
Go
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
|
|
}
|
|
}
|