cookie 简单用法

cookie 简单用法

//当前登录人的组织Id
HttpCookie SingleValueCookie = new HttpCookie("DepartmentId", "值");
Response.Cookies.Add(SingleValueCookie);

string departmentId = Request.Cookies["DepartmentId"].Value.ToString();

 

posted @ 2018-05-02 10:34  幽冥狂_七  阅读(178)  评论(0编辑  收藏  举报