diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-25 22:44:04 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-25 22:44:12 -0700 |
| commit | 8aa12167bbfdba079d341d981d1c74d58785a54d (patch) | |
| tree | 9ea104ba8ca31a04530bdfcfb7152c5e46db7366 | |
| parent | Revert "Add a way to log out" (diff) | |
| download | roseh.moe-8aa12167bbfdba079d341d981d1c74d58785a54d.tar.zst | |
Increase cookie expiry
| -rw-r--r-- | roseh.moe.go | 2 |
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) { |
