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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.