存储在服务器中的cookie [英] cookies stored in the server

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

问题描述

大家好
Internet Explorer如何从服务器读取cookie

hello all
how the internet explorer read the cookies from the server

推荐答案

不是.

Cookies没有存储在服务器上,而是存储在客户端上.这就是重点!

ASP.NET Cookies概述 [
It doesn''t.

Cookies are not stored on the server, they are stored on the client. That is the whole point!

ASP.NET Cookies Overview[^]


Cookie不在客户端浏览器上维护在服务器中.
如果需要使用服务器端状态,则必须使用会话状态.

Cookies are maintaining on client''s browser not in the server.
If you need to use server side state ,you have to use Session State.

报价:

Cookie是一小段文本,它们在Web服务器和浏览器之间传递请求和页面. Cookie包含用户每次访问该网站时Web应用程序都可以读取的信息.
例如,如果用户从您的站点请求页面,并且您的应用程序不仅发送页面,还发送包含日期和时间的cookie,那么当用户的浏览器获取页面时,浏览器也会获取该cookie,它存储在用户硬盘上的文件夹中.

A cookie is a small bit of text that accompanies requests and pages as they go between the Web server and browser. The cookie contains information the Web application can read whenever the user visits the site.
For example, if a user requests a page from your site and your application sends not just a page, but also a cookie containing the date and time, when the user''s browser gets the page, the browser also gets the cookie, which it stores in a folder on the user''s hard disk.



有关更多信息:

http://msdn.microsoft.com/en-us/library/ms178194 (v = vs.90).aspx [ http://msdn.microsoft.com/en-us/library/ms972429.aspx [ ^ ]

希望对您有帮助.



For more info :

http://msdn.microsoft.com/en-us/library/ms178194(v=vs.90).aspx[^]

More about Session State:

http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]

I hope this will help to you.


这篇关于存储在服务器中的cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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