//设置cookieResponse.Cookies["loginPage"].Value = "login.aspx"; //命名并给值Response.Cookies["loginPage"].Expires = DateTime.MaxValue; //时间为最大//读取cookiestring logout = Request.Cookies["loginPage"].Value.ToString(); //清除cookieResponse.Cookies["loginPage"].Expires = DateTime.Now.AddDays(-1); //相当于清除