修复cookies删除不成功;修复后台批量操作因更新boottable后无法获取选中id
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user