什么是ASP.net中的Cookie? [英] What are cookies in ASP.net?

查看:79
本文介绍了什么是ASP.net中的Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.net中的cookie,上下文和会话状态是什么?

What are cookies, context, session states in ASP.net?

推荐答案

Abdul Quader Mamun给了您答案

但我建议您也进一步阅读这些链接.您可能会发现它很有帮助
Cookies [^]
会话
Abdul Quader Mamun has given you the answer

But I suggest you to read further these links too. You may find it helpful
Cookies [^]
Session


感谢您的提问,

Cookie是一小段文本,当它们在Web服务器和浏览器之间移动时,伴随着请求和页面. Cookie包含用户访问网站时Web应用程序可以读取的信息.

参考:
http://msdn.microsoft.com/en-us/library/ms178194.aspx [ ^ ]


运行Web应用程序时,ASP.NET维护有关当前应用程序,每个用户会话,当前HTTP请求,所请求页面等的信息. ASP.NET包含一系列用于封装此上下文信息的类.

参考: http://msdn.microsoft.com/en-us/library/swe97x0b.aspx [^ ]

会话定义为唯一用户与Web应用程序交互的时间段.希望为唯一的用户会话保留数据的Active Server Pages(ASP)开发人员可以使用一种称为会话状态的固有功能.


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


谢谢,
马蒙
Thanks for your question,

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.

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


When a Web application runs, ASP.NET maintains information about the current application, each user session, the current HTTP request, the requested page, and so on. ASP.NET contains a series of classes to encapsulate this context information.

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

A session is defined as the period of time that a unique user interacts with a Web application. Active Server Pages (ASP) developers who wish to retain data for unique user sessions can use an intrinsic feature known as session state.


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


Thanks,
Mamun


这篇关于什么是ASP.net中的Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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