Improve cookie setting.

This commit is contained in:
2024-12-06 23:43:47 +00:00
parent 4151fddf3a
commit 3587bb8d3e
4 changed files with 26 additions and 21 deletions
+2
View File
@@ -1223,6 +1223,8 @@ func TestHandleExpiredToken(t *testing.T) {
t.Error("Nonce not set")
}
defaultSessionOptions := newSessionOptions(tOidc.determineScheme(req) == "https")
// Verify session options
if session.Options.MaxAge != defaultSessionOptions.MaxAge {
t.Error("Session MaxAge not set correctly")