Search code examples
c#cookiesusing

Reading cookie from Chrome


I'm using Visual Studio 2015, coding in C# and I'm trying to read a cookie from Chrome.

I have found the HttpCookie class and have added the statement

"using System.Web;"

in the top of the document, but Visual Studio still doesn't seem to recognize this, so I'm not able to use the classes in the System.Web-namespace.

I'm quite sure there is an easy fix for this, but this kind of problem seems to haunt me :-(


Solution

  • If I may ask a silly question that I would have left as a comment if I had the priledges, sorry if this isn't your answer. Have you got a reference to the System.Web.dll in your project?