© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
8 replies
RockyDf01

❔ Get Array From Cookies using C#

Hi Everyone, So I got a problem with getting the Cart array from cookies, I use this code
Request.Cookies.TryGetValue($"Cart{user.Id}", out var cart);
Request.Cookies.TryGetValue($"Cart{user.Id}", out var cart);
to get the array out of cookie but it returns me this "[8" and what I got stored in the Cookies its
Cart1=[8,2002,6,4]
Cart1=[8,2002,6,4]
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Get Gmail inbox using C#
C#CC# / help
2y ago
C# array init
C#CC# / help
2y ago
✅ Array help C++
C#CC# / help
2y ago