加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

ASP.Net Cookieless如何工作?

发布时间:2020-12-15 23:57:37 所属栏目:asp.Net 来源:网络整理
导读:我尝试设置 sessionstate /在我的web.config但我不知道他们是什么. 我想知道ASP.Net SessionState cookieless =“”/. sessionState cookieless="*****" AutoDetect UseCookies UseDeviceProfile UseUri 是的 假 请以简短的说明告诉我. 解决方法 Specifies h
我尝试设置< sessionstate />在我的web.config但我不知道他们是什么.
我想知道ASP.Net< SessionState cookieless =“”/>.
<sessionState cookieless="*****">

> AutoDetect
> UseCookies
> UseDeviceProfile
> UseUri
>是的
>假

请以简短的说明告诉我.

解决方法

Specifies how cookies are used for a Web application.

The cookieless attribute can be one of the following possible values.
The default is the UseCookies value.

Note When you configure an AJAX-enabled ASP.NET Web site,use only the
default value of UseCookies for the cookieless attribute. Settings
that use cookies encoded in the URL are not supported by the ASP.NET
AJAX client script libraries.

Value Description

AutoDetect ASP.NET determines whether the requesting browser or device supports cookies. If the requesting browser or device supports
cookies,AutoDetect uses cookies to persist user data; otherwise,an
identifier is used in the query string. If the browser or device
supports cookies,but cookies are currently disabled,cookies are
still used by the requesting feature.

UseCookies Cookies persist user data,regardless of whether the browser or device supports cookies.

UseDeviceProfile ASP.NET determines whether to use cookies based on the HttpBrowserCapabilities setting. If the HttpBrowserCapabilities
setting indicates that the browser or device supports cookies,cookies
are used; otherwise,an identifier is used in the query string.

UseUri The calling feature uses the query string to store an identifier,regardless of whether the browser or device supports
cookies.

还看看http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读