修复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
}
+1 -1
View File
@@ -38,7 +38,7 @@ namespace COMCMS.Common
StringBuilder strPage = new StringBuilder();
string pageLink = "";// url + "?id=" + HttpContext.Current.Request.QueryString["id"] + "&page={0}";
string strQueryString = MyHttpContext.Current.Request.QueryString.ToString().ToLower();
if (isRewrite != 5)
if (isRewrite != 5 && isRewrite != 99)
url = url.ToLower();
pageLink = url + "?" + strQueryString;
string currPage = MyHttpContext.Current.Request.Query["page"];