How do I access a cookie in ASP.NET?

0

I'm trying to check if a cookie exists, but I've tried it in many ways, but the HttpContext method is simply not found and does not work. Am I missing a library?

Error returned:

Error CS0120    An object reference is required for the non-static field, method, or property 'Controller.Request'  E-Learning  C:\Users\VDD-005\OneDrive\Vox\E-Learning\E-Learning\Helpers\Authentication.cs   13  Active
    
asked by anonymous 07.03.2016 / 23:13

1 answer

0

This means that either you are using a Client Profile such as Target Framework (may change in project properties) or the reference to System.Web has not been added correctly, it may be incompatible with installed or used versions.

    
07.03.2016 / 23:25