Solved

cookie access

Posted on 2012-04-12
3
182 Views
Last Modified: 2012-06-21
we create a cookie in c# to later be access on asp. It was working but now seems ASP doesnt read it. We check on the browser and the cookie is created. Please any ideas. Thanks in advances.

c#

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

ASP - read

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

response.write strUsername
response.end
0
Comment
Question by:goodluck11
  • 2
3 Comments
 

Author Comment

by:goodluck11
ID: 37840563
Asp not writing anything in the browser when called
0
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 37841182
hi


The "Request.Cookies" command is used to retrieve a cookie value



MORE INFO
http://www.codefixer.com/tutorials/cookies.asp
http://www.w3schools.com/asp/asp_cookies.asp
0
 

Author Comment

by:goodluck11
ID: 37845264
Hi

Yes that's what we are trying retrieve the value, please see the ASP code
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Error viewing ASP page 12 82
Visual Studio: built-in keystroke automation 2 23
Set form below another form 3 25
Showdialog 8 20
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now