mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 14:20:31 +01:00
Fix cookie expiry
This commit is contained in:
@@ -3463,7 +3463,7 @@ if ($ok && (!$expired ||
|
||||
local $sec = $ssl ? "; secure" : "";
|
||||
#$sec .= "; httpOnly";
|
||||
if ($in{'save'}) {
|
||||
&write_data("Set-Cookie: $sidname=$sid; path=/; expires=\"Fri, 1-Jan-2038 00:00:01\"$sec\r\n");
|
||||
&write_data("Set-Cookie: $sidname=$sid; path=/; expires=\"Thu, 31-Dec-2037 00:00:00\"$sec\r\n");
|
||||
}
|
||||
else {
|
||||
&write_data("Set-Cookie: $sidname=$sid; path=/$sec\r\n");
|
||||
|
||||
Reference in New Issue
Block a user