J
Johnnie Norsworthy
I am trying to debug a C# ASP.NET application in VS.NET. I have added a
text box to my form for storing a user signature which I am trying to
persist using cookies.
In my Page_Load() I have added the following:
try
{
Signature.Text = Request.Cookies["Signature"].Value;
}
catch
{
Signature.Text = "";
}
It seems that this cookie is always null, even though I trace through my
code as follows that is executed on a button press:
Response.Cookies["Signature"].Value = Signature.Text;
Response.Cookies["Signature"].Expires = DateTime.Now.AddMonths(6);
and the cookie appears to be written with no errors. But I cannot locate
the cookie file under "Documents and Settings\Username\Cookies".
Is there a cookie writing restriction when debugging in the VS.NET IDE?
Thanks for any help. My code seems simple enough, but please let me know if
something is wrong there.
My Web.config has cookieless="false", if that matters.
-Johnnie
text box to my form for storing a user signature which I am trying to
persist using cookies.
In my Page_Load() I have added the following:
try
{
Signature.Text = Request.Cookies["Signature"].Value;
}
catch
{
Signature.Text = "";
}
It seems that this cookie is always null, even though I trace through my
code as follows that is executed on a button press:
Response.Cookies["Signature"].Value = Signature.Text;
Response.Cookies["Signature"].Expires = DateTime.Now.AddMonths(6);
and the cookie appears to be written with no errors. But I cannot locate
the cookie file under "Documents and Settings\Username\Cookies".
Is there a cookie writing restriction when debugging in the VS.NET IDE?
Thanks for any help. My code seems simple enough, but please let me know if
something is wrong there.
My Web.config has cookieless="false", if that matters.
-Johnnie