mirror of
https://github.com/rystaf/mlmym.git
synced 2024-09-19 20:30:20 +00:00
cookie max age
This commit is contained in:
parent
c1bdf44a73
commit
b4868d9e62
|
@ -463,6 +463,7 @@ func setCookie(w http.ResponseWriter, host string, name string, value string) {
|
||||||
cookie := http.Cookie{
|
cookie := http.Cookie{
|
||||||
Name: name,
|
Name: name,
|
||||||
Value: value,
|
Value: value,
|
||||||
|
MaxAge: 86400 * 30,
|
||||||
Path: "/" + host,
|
Path: "/" + host,
|
||||||
}
|
}
|
||||||
http.SetCookie(w, &cookie)
|
http.SetCookie(w, &cookie)
|
||||||
|
|
Loading…
Reference in a new issue