summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-09-25 22:44:04 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-09-25 22:44:12 -0700
commit8aa12167bbfdba079d341d981d1c74d58785a54d (patch)
tree9ea104ba8ca31a04530bdfcfb7152c5e46db7366 /roseh.moe.go
parentRevert "Add a way to log out" (diff)
downloadroseh.moe-8aa12167bbfdba079d341d981d1c74d58785a54d.tar.zst
Increase cookie expiry
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index a7169a7..ef4e219 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -695,7 +695,7 @@ func makeToken() string {
return base64.RawURLEncoding.EncodeToString(append(t, mac(t, "auth")...))
}
-const cookieExpiration = 7 * 24 * time.Hour
+const cookieExpiration = 300 * 24 * time.Hour
const authCookieName = "a"
func attachCookie(w http.ResponseWriter) {