摘要:
C#实现的读取与写入cookie的例子。 代码如下:protected void Page_Load(object sender, EventArgs e) { //打开登录页面时获取客户端cookie值并写入前台控件中 HttpCookie cookie = Request.Cookies["name"]; if (cookie == null) { UserName.Text = ""; } else { UserName.Text = cookie.Value; } } protected void btnSubmit_Click(object s 阅读全文