Cookies problem

  • Thread starter Thread starter The Clansman
  • Start date Start date
T

The Clansman

Hi,
I want to store the user's email in a cookie, so when the user open the
login page again, the email will be shown in the Email field, I have this
line in the login procedure:

Response.Cookies("EmailCookie").Value = txtEmail.Text

but the return value is empty when I do the following:

txtEmail.Text = Response.Cookies("EmailCookie").Value

what is wrong?

thanks,
Bruno
 
you have to store it on the HD.
Give it an .Expires() date in the future, otherwise the cookie vanishes when
the browser is closed.
 
Back
Top