什么是Cookie会话? [英] What are cookieless sessions?

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

问题描述

在ASP.NET,我有点困惑在会话状态的cookie的作用。
什么是正常的会话状态和Cookie的会话状态之间的区别?

In ASP.NET, I'm a bit confused about role of cookies in session state. Whats is the difference between normal session state and cookieless session state?

推荐答案

普通会话状态包括提供一个cookie。该cookie包含一个用于由网站相匹配访问者与它们各自的会话值的会话标识符

Normal session state involves providing a cookie. The cookie contains a session identifier which is used by the website to match visitors up with their respective session values.

无Cookie的会话状态使用相同的原则,但不使用cookies是传递会话标识符。通常情况下,这是作为查询字符串参数传递。

Cookieless session state uses the same principles, but doesn't use cookies to pass the session identifier around. Normally, this is passed as a parameter on the querystring.

例如

<一个href=\"http://www.somewebsite.com/page.aspx?sid=jrkwojeqrojq3op349023231234r23rf2\">http://www.somewebsite.com/page.aspx?sid=jrkwojeqrojq3op349023231234r23rf2

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

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