mirror of
https://github.com/zigzap/zap.git
synced 2025-10-21 07:34:08 +00:00
cookie max-age should be set to -1 for browser to remove the cookie
This commit is contained in:
parent
0c18565cea
commit
60769fc1fe
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ pub fn UserPassSessionAuth(comptime Lookup: type, comptime lockedPwLookups: bool
|
|||
if (r.setCookie(.{
|
||||
.name = self.settings.cookieName,
|
||||
.value = "invalid",
|
||||
.max_age_s = self.settings.cookieMaxAge,
|
||||
.max_age_s = -1,
|
||||
})) {
|
||||
zap.debug("logout ok\n", .{});
|
||||
} else |err| {
|
||||
|
@ -424,7 +424,7 @@ pub fn UserPassSessionAuth(comptime Lookup: type, comptime lockedPwLookups: bool
|
|||
if (r.setCookie(.{
|
||||
.name = self.settings.cookieName,
|
||||
.value = "invalid",
|
||||
.max_age_s = self.settings.cookieMaxAge,
|
||||
.max_age_s = -1,
|
||||
})) {
|
||||
zap.debug("logout ok\n", .{});
|
||||
} else |err| {
|
||||
|
|
Loading…
Add table
Reference in a new issue