Software Development DotNet ASP.NET - 3、Cookie
Created at 2013-01-07 Updated at 2018-05-03 Category Software Development
1、Cookie的读写
- 服务端写:
1 | Response.SetCookie(new HttpCookie("Color",Textbox1,Text)); |
- 服务端读:
1 | Request.Cookies["Color"].value |
- 客户端也可通过读取:
1 | $.cookie |