utils: add inline comment about cookie set-for-clear

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-03-18 15:58:53 +01:00
parent c1a3584103
commit 96fb7eaacd

View File

@ -306,6 +306,7 @@ utilities: {
if (Proxmox.LoggedOut) {
return;
}
// ExtJS clear is basically the same, but browser may complain if any cookie isn't "secure"
Ext.util.Cookies.set(Proxmox.Setup.auth_cookie_name, "", new Date(0), null, null, true);
window.localStorage.removeItem("ProxmoxUser");
},