尝试标准写法:
Dim Cookie As HttpCookie
If Request.Cookies("myTest") Is Nothing Then
Cookie = New HttpCookie("myTest")
Cookie.Values.Add("Name", "myName")
Response.AppendCookie(Cookie)
Else
Cookie = Request.Cookies("myTest")
Cookie.Values.Set("Name", "myName")
Response.SetCookie(Cookie)
End if