I' ve my cookie to

Dim authCookie As New HttpCookie(FormsAuthentication.FormsCookieName)

I've just started learning about cookies not long ago,can I retrieve the cookie that I've set by using the code below?

Dim authCookie As String = FormsAuthentication.FormsCookieName

        If Not Request.Cookies(authCookie) Is Nothing Then
            'Display requested page
        Else
            Response.Redirect("Login.aspx?")
        End If

First you need to set a cookie using something like

Response.Cookies("MyCookie") = 1233654

then to retrieve it you use something like

Request.Cookies("MyCookie").Value
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.