当我禁用cookie选项时,存储会话ID的位置(无Cookie会话ID) [英] where storing session ID when i disable cookie option(Cookieless SessionIDs)

查看:109
本文介绍了当我禁用cookie选项时,存储会话ID的位置(无Cookie会话ID)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我禁用cookie选项时存储会话ID的位置(无Cookie会话ID)

where storing session ID when i disable cookie option (Cookieless SessionIDs)
What mechanism is used to store data?

推荐答案

默认情况下,会话ID存储在cookie中.但是在无cookie的情况下,服务器对会话ID进行编码,并将其与页面中的每个href链接一起添加.当用户单击任何链接时,ASP.NET对该会话ID进行解码,并将其传递给用户请求的页面.现在,请求页面可以检索任何会话变量
By default, the session Ids are stored in cookies. But in cookieless scenario, Server encodes the session id and add it with every href link in page. When user click any link, ASP.NET decodes that session id and passes it to the page that user requesting. Now the requesting page can retrieve any session variable


,具体取决于您选择的会话状态.默认情况下在内存中.会话ID存储在URL本身中.
有关更多信息,请 http://msdn.microsoft.com/en-us/library/aa479314.aspx [ ^ ]
Depends on the session state you have chosen. By default in memory. The Session ID is stored in the url itself.
For more information http://msdn.microsoft.com/en-us/library/aa479314.aspx[^]


这篇关于当我禁用cookie选项时,存储会话ID的位置(无Cookie会话ID)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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