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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top