




















写入Cookie
var CookieOption = new CookieOptions(); CookieOption.Path = "/"; //on localhost, Domain value is not needed !! CookieOption.Domain = ""; CookieOption.Expires = DateTime.Now.AddHours(1); CookieOption.HttpOnly = true; //set cookie Context.Response.Cookies.Append("TestCookie", "Testing", CookieOption);
读取Cookie
string testCookie = Context.Request.Cookies.Get("TestCookie");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。