Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Suppose there is page which asks user for his/her name,age etc. and save it into cookies. Now user is navigating on your website and in between he/she deleted all the cookies and then navigates to the other page which uses these cookies. According to me the next page will get blank values right? How to handle this drawback? I don't want user to fill those details again.
Posted

If you don't want the users to fill in the details again then tell your users to stop deleting cookies. They shouldn't be surprised that they have to enter the information again if they deleted the cookies.

However, to be truly persistent don't use the cookies at all. Store the information in the database.
 
Share this answer
 
You can save it to a database and them load the data into a session variable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900