troubleshooting Question

accessing cookies from different aspx/asp pages not working

Avatar of goodluck11
goodluck11 asked on
C#Web Browsers.NET Programming
9 Comments1 Solution294 ViewsLast Modified:
c# creating cookie

 System.Web.HttpCookie UserNameCookie = new System.Web.HttpCookie("UserName");
                    UserNameCookie.Value = objUser.Username;
                    UserNameCookie.Expires = DateTime.Now.AddDays(5);
                    Response.Cookies.Add(UserNameCookie);

Classic ASP - reading cookie

Dim strUsername
strUsername = Request.Cookies("UserName")

response.write strUsername
response.end

it used to work, not anymore, how can we find the actual cookie value ?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros