如果要存储用户的资料,我们可以使用下面的代码:
Response.Cookies[“username’].Value=username;
获取Cookies的值
if (Request.Cookies[“username”]!=null)
lbMessage.text=”Dear “+Request.Cookies[“username”].Value+”, Welcome shopping here!”;
else
lbMessage.text=”Welcome shopping here!”;