Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            OrderTable.initData();
            HttpCookie userInfo = new HttpCookie("userInfo");

            userInfo["UserName"]  = "******";
            userInfo["UserColor"] = "Black";
            userInfo.Expires.Add(new TimeSpan(0, 1, 0));
            Response.Cookies.Add(userInfo);
        }