Cookies problem

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
 
C

Curt_C [MVP]

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

Cookies problem (again) 2
Cookies Count 2
Using Cookies 0
ASP.NET 2.0 Cookies 1
ASP.Net Stored Password Expiring 2
Cookies? 0
Django authenticate problem 0
How to clear cookies in ASP? 6

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top