re:
!I know how to read the cookie.
!The problem is when I try to read it in C# it always returns null.
Then, either the code you're using doesn't read the cookie properly,
or the cookie isn't being set correctly.
Have you tried the code I posted to read cookies ?
As for setting cookies, here's 2 sample C# code fragments :
1.
Response.Cookies["userName"].Value = "patrick";
Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1);
2.
HttpCookie aCookie = new HttpCookie("lastVisit");
aCookie.Value = DateTime.Now.ToString();
aCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(aCookie);
How are you setting the cookie ?
Are you expiring the cookie ?
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
<ic********@gmail.comwrote in message news:11**********************************@z16g2000 prn.googlegroups.com...
>I know how to read the cookie. The problem is when I try to read it in
C# it always returns null. In ASP it returns the value of the cookie.