T
The Clansman
Hi,
I tried this in the btnLogin_Click event:
Response.Cookies("UserEmail").Value = txtEmail.Text
Response.Cookies("UserEmail").Expires =
DateTime.Now.AddMonths(1)
and in the Page_Load event I do this:
txtEmail.Text = Response.Cookies("UserEmail").Value
but the return value is still empty, I can read the cookie if I try to read
as soon I write it:
Response.Cookies("UserEmail").Value = txtEmail.Text
Response.Cookies("UserEmail").Expires =
DateTime.Now.AddMonths(1)
txtEmail.Text = Response.Cookies("UserEmail").Value
Thanks,
Bruno
I tried this in the btnLogin_Click event:
Response.Cookies("UserEmail").Value = txtEmail.Text
Response.Cookies("UserEmail").Expires =
DateTime.Now.AddMonths(1)
and in the Page_Load event I do this:
txtEmail.Text = Response.Cookies("UserEmail").Value
but the return value is still empty, I can read the cookie if I try to read
as soon I write it:
Response.Cookies("UserEmail").Value = txtEmail.Text
Response.Cookies("UserEmail").Expires =
DateTime.Now.AddMonths(1)
txtEmail.Text = Response.Cookies("UserEmail").Value
Thanks,
Bruno