修复cookies删除不成功;修复后台批量操作因更新boottable后无法获取选中id

This commit is contained in:
2020-10-23 14:46:40 +08:00
parent ab40520cda
commit 3b50120a5c
10 changed files with 60 additions and 16 deletions
+8 -1
View File
@@ -57,7 +57,14 @@ namespace COMCMS.Common
/// <param name="strKey"></param>
public static void ClearCookies(string strKey)
{
MyHttpContext.Current.Response.Cookies.Delete(strKey);
CookieOptions op = new CookieOptions
{
Expires = DateTime.Now.AddMinutes(-1),
Path = "/",
HttpOnly = true,
SameSite = SameSiteMode.Lax
};
MyHttpContext.Current.Response.Cookies.Delete(strKey, op);
}
#endregion
}