Set maxAge
This commit is contained in:
parent
5728c438aa
commit
dea68f2126
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ func (a *Auth) routeAuth(w http.ResponseWriter, r *http.Request) {
|
||||||
Path: "/",
|
Path: "/",
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Secure: true,
|
Secure: true,
|
||||||
|
MaxAge: 60 * 60 * 24 * 30, // one month
|
||||||
}
|
}
|
||||||
|
|
||||||
cookie.Domain = r.Host
|
cookie.Domain = r.Host
|
||||||
|
|
Loading…
Reference in a new issue