Link to home
Start Free TrialLog in
Avatar of mousemat24
mousemat24

asked on

How to read all key / values from a cookie

Hi

I have a cookie like so:

HttpCookie cook = new HttpCookie("MyCook");
cook.Expires = DateTime.Now.AddMonths(1);
cook["name"] = "Fred";
cook["color"] = "red";
cook["book"] = "C# Programming";

In .NET is there a way to lsit all the keys i.e.

name, color and book

AND is there a way to see ALL the values of the keys i.e.

Fred, red and C# Programming

thanks
ASKER CERTIFIED SOLUTION
Avatar of BourbonKid
BourbonKid
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial