什么是不同类型的cookie和cookie的使用? [英] What are different types of cookies and uses of cookies?

查看:99
本文介绍了什么是不同类型的cookie和cookie的使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请建议我什么是不同类型的cookie和cookie的使用..

Hi all,

Please suggest me What are different types of cookies and uses of cookies..

推荐答案



asp.net中有两种类型的cookie。



1.内存中的cookie:浏览器关闭时内存cookie处理。

2,持久性cookie:持久性cookie存储在硬盘中即使在关闭浏览器时它也可以在用户回到网站时找到它的值。



当你创建持久性cookie然后你可以定义过期日期饼干。



例如:

内存中的cookie:

Response.Cookies(country) =孟加拉国

持久性cookies:

Response.Cookies(country)=孟加拉国

Response.Cookies(country ).Expires =01-January-2013​​





谢谢。

Rashed ::孟加拉国。
The
there are 2 type of cookies in asp.net.

1. In-memory cookies: in-memory cookie dispose when browser down.
2, Persistent cookies: persistent cookies store in hard drive even when close the browser and it values can find when the user come back on the web site.

when you create persistent cookies then you can define the expire date of cookies.

for example:
In-memory cookies:
Response.Cookies("country") = "Bangladesh"
persistent cookies:
Response.Cookies("country") = "Bangladesh"
Response.Cookies("country").Expires = "01-January-2013"


thank you.
Rashed::Bangladesh.






看看这里:

开发人员的ASP.NET Cookie指南 [ ^ ]

ASP.NET中的Cookie [ ^ ]

初学者在ASP.NET中理解和实现Cookie的指南 [ ^ ]

关于Cookie的保养和处理 [ ^ ]



添加第4个链接[/ Edit]
Hi,

Have a look here:
Beginner''s Guide to ASP.NET Cookies[^]
Cookies in ASP.NET[^]
A Beginner''s guide for Understanding and Implementing Cookies in ASP.NET[^]
On The Care and Handling of Cookies[^]

4th link added[/Edit]


这是你的解决方案 -



以下是浏览器的cookie类型:

-single-valued session cookie

-单值饼干

-cookie没有价值

-multivalued cookie

-single-valued persistent饼干



一般我们使用多值饼干和单值饼干



ASP.NET中的Cookie [ ^ ]

初学者的ASP.NET Cookie指南 [ ^ ]

Cookies [ ^ ]
this is your solution-

the following are the types of cookies of the browser:
-single-valued session cookie
-single-valued cookie
-cookie without a value
-multivalued cookie
-single-valued persistent cookie

generally we use multivalued cookie and single-valued cookie

Cookies in ASP.NET[^]
Beginner''s Guide to ASP.NET Cookies[^]
Cookies[^]


这篇关于什么是不同类型的cookie和cookie的使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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