KB Issue
'' is not declared
Copy
Search Site
Search Google
. It may be inaccessible due to its protection level.
Issue Details
When reading from a cookie, you have to make sure you wrap the cookie name and value in double quotes.
Recreate Issue
[ASP.NET - Incorrect way to call a cookie]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
Dim strcsun As String = Context.Request.Cookies(mycookie)("User")

In the above, we can see that the cookie name is mycookie
Copy
Search Site
Search Google

and it is not enclosed in double quotes. "mycookie"
Copy
Search Site
Search Google
Resolve Issue
[ASP.NET - Proper Way to call a Cookie]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
Dim strcsun As String = Context.Request.Cookies("mycookie")("User")

Enclosing the cookie name with double quotes: "mycookie"
Copy
Search Site
Search Google

Resolves this issue.