Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi forum,
I need to read a cookie from a view. How do I do that in .NET Core?
@{ Context.Request.Cookies.TryGetValue("NameOfCookie", out string cookieValue); }
You then have the value in @cookieValue
@cookieValue
Thanks! That was simple. :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to read a cookie in Umbraco 9/.NET Core?
Hi forum,
I need to read a cookie from a view. How do I do that in .NET Core?
You then have the value in
@cookieValue
Thanks! That was simple. :)
is working on a reply...