如何在浏览器中维护cookie值 [英] How to maintain the cookies values in browser

查看:184
本文介绍了如何在浏览器中维护cookie值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在浏览器中删除cookie值时保持cookie值。请任何人可以帮助我。提前谢谢。

Hi to All,
How to maintain the cookies values while deleting cookies values in browser.Please Any one Can help me.Thanks in advance.

推荐答案

他们是2种类型的饼干。





1)持久性Cookies& 2)非持久性饼干



持久性饼干




持久性饼干是存储在您的计算机硬盘上。它们保留在您的硬盘上,并且可以通过Web服务器访问


,直到它们被删除或已过期。



持久性cookie不受您的浏览器设置的影响,当您关闭浏览器时,删除



临时文件。



非持久性



仅保存非持久性cookie您的Web浏览器正在运行。只有在您关闭浏览器之前,它们才可以是Web服务器使用的


。它们不是保存在磁盘上的b $ b

。 Microsoft Internet Explorer 5.5可以配置为



接受非持久性cookie但拒绝持久性cookie。



并按照我们的代码项目文章 ..



在ASP.NET中理解和实现Cookie的初学者指南 [ ^ ]
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[^]


如果你想在cookie中保存数据,你必须将它们存储在服务器端的永久存储器中,例如数据库。
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.


这篇关于如何在浏览器中维护cookie值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆