/// <summary>
    /// clear cookies
    /// </summary>
    /// <param name="Cookie"></param>
    public void RemoveCookies(string Cookie)
    {
        HttpCookie cook = Request.Cookies[Cookie];
        cook.Expires = DateTime.Now.AddDays(-1);
        cook.Values.Clear();
        System.Web.HttpContext.Current.Response.Cookies.Set(cook);
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-06-07
  • 2021-07-05
  • 2021-05-23
  • 2021-08-08
相关资源
相似解决方案