在 Asp.Net 4.0 中,我正在使用 HttpCookie 类编写 cookie。用 IE9 调试。cookie 被保存到“/”。它不应该保存到 [user]\AppData\Local\Microsoft\Windows\Temporary Internet Files 吗?当我试图在那里找到它时,它不存在。我该如何改变呢?
Dim cookie_name As String = "ProjectId"
Dim cookie As New HttpCookie(cookie_name)
cookie.Value = "123456789"
cookie.Expires = DateTime.Now.AddHours(8)
Response.Cookies.Add(cookie)
Debug.Print(cookie.Path.ToString) 'cookie is saving to "/"