Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi to All,
How to maintain the cookies values while deleting cookies values in browser.Please Any one Can help me.Thanks in advance.
Posted
Updated 21-Apr-14 0:07am
v2

they are 2 types of cookies.


1)persistent Cookies & 2) Non-persistent Cookies

Persistent cookies


Persistent cookies are stored on your computer hard disk. They stay on your hard disk and

can be accessed by web servers until they are deleted or have expired.

Persistent cookies are not affected by your browser setting that deletes

temporary files when you close your browser.

Non-persistent

Non-persistent cookies are saved only while your web browser is running. They can be

used by a web server only until you close your browser. They are not

saved on your disk. Microsoft Internet Explorer 5.5 can be configured to

accept non-persistent cookies but reject persistent cookies.

and follow our code project article..

A Beginner's guide for Understanding and Implementing Cookies in ASP.NET[^]
 
Share this answer
 
If you want to persist the data in the cookies, you have to store them in a permanent storage on server side, such as a database.
 
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