Juanito
Juanito

Reputation: 420

asp.net cookie does not persist

While trying to persist a cookie for future reference, can't get it:

Response.Cookies.Add(new HttpCookie(COOKIE_LMNOMBRE) 
{ 
   Domain = "SIG", Value = userName 
});

Checking on Firefox firebug, there is no cookie!

Upvotes: 1

Views: 105

Answers (1)

DanielV
DanielV

Reputation: 2700

Are you sure about the domain name? Have you tried removing the domain name?

HttpCookie cookie = new(COOKIE_LMNOMBRE)
{ 
   Value = userName
};
Response.Cookies.Add(cookie);

Upvotes: 2

Related Questions