cookie max age
This commit is contained in:
parent
c1bdf44a73
commit
b4868d9e62
1 changed files with 4 additions and 3 deletions
|
|
@ -461,9 +461,10 @@ func setCookie(w http.ResponseWriter, host string, name string, value string) {
|
|||
host = ""
|
||||
}
|
||||
cookie := http.Cookie{
|
||||
Name: name,
|
||||
Value: value,
|
||||
Path: "/" + host,
|
||||
Name: name,
|
||||
Value: value,
|
||||
MaxAge: 86400 * 30,
|
||||
Path: "/" + host,
|
||||
}
|
||||
http.SetCookie(w, &cookie)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue