Yes, thank you, I realized that afterward. I am still having a problem though:
First of all I'm in a development environment, so the site name would just
be
http://localhost. I am trying to write a cookie using the following code:
public static void Write( string cookieName, string cookieValue )
{
HttpCookie cookie = new HttpCookie( cookieName, cookieValue );
cookie.Expires = DateTime.Now.AddYears(1);
HttpContext.Current.Response.Cookies.Add( cookie );
}
The problem is that the cookie is only available for the time the browser is
open, it's not there the next time I try to read it, even though I've set an
expiration date.
The second issue, is there is another application that is creating a cookie
(an ASP app), which I need to read back. That application is redirecting to
my application )ASP.NET app), which exists on the same server, and is 'part'
of the ASP app in IIS. I can't seem to be able to read the cookie (not part
of Cookie collection) in my APS.NET app. Any ideas on this?
Thanks much