wip: debugging session authentication

This commit is contained in:
2025-06-07 00:20:03 +01:00
parent 627633ea29
commit ea9c5f0902
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func GetConfigDirectory() (string, error) {
func ConstructSession(session *sessions.Session, user types.User) {
session.Options = &sessions.Options{
Path: "/",
MaxAge: 86400 * 7,
MaxAge: 3600,
HttpOnly: true,
}
session.Values["id"] = user.ID