修复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
|
||||
}
|
||||
|
||||
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user