I want to get a Cookie with specific name and want to check the Value of it. I've seen a lot of different suggestions, but i can not create a Request like this
bool isApproved = HttpContext.Current.Request.Cookies("myCookie").Value.Equals("true", StringComparison.OrdinalIgnoreCase) ?? false;
i am using the using:
@using Microsoft.AspNetCore.Http
but now 'Current' throws the message: httpcontext does not contain a definition for current
Why does that work for others and not form me? Am I missing something?
Thanks for your Help, Schlindibus