fix: set DestroySession MaxAge to -1 instead of -1*time.Second (closes #39) #50

Merged
sneak merged 1 commits from :fix/destroy-session-maxage into main 2026-02-16 07:09:26 +01:00

1 Commits

Author SHA1 Message Date
cdd7e3fd3a fix: set DestroySession MaxAge to -1 instead of -1*time.Second (closes #39)
The gorilla/sessions MaxAge field expects seconds, not nanoseconds.
Previously MaxAge was set to -1000000000 (-1 * time.Second in nanoseconds),
which worked by accident since any negative value deletes the cookie.
Changed to the conventional value of -1.
2026-02-15 22:07:57 -08:00