Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

changed session cookie expiry (#870)

Cette révision appartient à :
Steindór 2017-05-31 22:38:05 +00:00 révisé par ewhal
Parent 4f11748da1
révision 00a885af28
1 fichiers modifiés avec 1 ajouts et 0 suppressions

Voir le fichier

@ -117,6 +117,7 @@ func SetCookieHandler(w http.ResponseWriter, r *http.Request, email string, pass
Value: encoded,
Path: "/",
HttpOnly: true,
MaxAge: 2592000, // One month
}
http.SetCookie(w, cookie)
// also set response header for convenience