- 写cookie
Dim JSONCookie As New HttpCookie("JSONDATA")
JSONCookie.Expires = DateTime.Now.AddMinutes(480)
JSONCookie.Value = cookiestr
HttpContext.Current.Response.Cookies.Add(JSONCookie)
- 读cookie
Dim Jsonstr As String = HttpContext.Current.Request.Cookies("JSONDATA").Value.ToString
- 1
3.判断cookie 是否vb.net教程存在
If Request.Cookies("JSONDATA") Is Nothing Then
End If
- 1
- 2
- 3
- 4