Problem reading Cookies

Discussion in 'ASP.NET / ASP.NET Core' started by wengert, Apr 17, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. The code below works fine on my old ISP account but generates an error when run on my new DiscountASP web site. The request for the cookie returns "Nothing". The error I get with this code is:




    Error: Object reference not set to an instance of an object


    =============== Code =================


    Try


    strWGI = Request.Cookies("WGILogin").Value


    Catch ex As Exception


    Response.Write("Error: " & ex.Message & "")


    Response.End


    End Try


    ======================================





    Any ideas of why this doesn't work on DiscountASP?

    ------------
    Wayne
     
  2. Duh!!!! My master domain still points to my old ISP so when I try to read the cookie from my new DSP account I am using the temporary domain name and thus there is no matching cookie! I think I had too many stupid pills today!





    ------------
    Wayne
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page