是否使用会话state = StateServer和cookieless = true仍将cookie存储在用户的计算机上? [英] Does using session state=StateServer and cookieless=true still store cookies on the user's computer?

查看:52
本文介绍了是否使用会话state = StateServer和cookieless = true仍将cookie存储在用户的计算机上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在查看通过Web会话(.Net MVC)持久存储的用户信息时,如果我们使用状态服务器并设置cookieless = true,则在用户系统上仍然存储有cookie,因为它与.net身份验证有关等

In looking at persisting user information across a web session (.Net MVC), if we use a state server and set cookieless=true, is there still a cookie stored on the user's system, as it relates to the .Net authentication, etc.

我们还将使用状态服务器来存储会话对象中将要使用的内容.

We would also use the state server to store what would have been used in a session object.

我意识到一些cookie很好-即AntiXsrfToken和__RequestVerificationToken.除此之外,我们正在寻找一种完全无cookie的解决方案.

I to realize that some cookies are good - ie, AntiXsrfToken and __RequestVerificationToken. Apart from these, we are looking for a fully cookieless solution.

谢谢.

推荐答案

如果我们使用状态服务器并设置cookieless = true,那么用户系统上是否还存储有cookie?

if we use a state server and set cookieless=true, is there still a cookie stored on the user's system?

这个问题不完整.

我只能为您提供所需的答案:使用 cookieless = true 时,ASP.NET不会在客户端计算机上使用cookie来存储会话ID.这就是此设置针对Cookie所做的全部.

I can only give you the answer you're looking for: when using cookieless=true, ASP.NET will not use cookies on the client machine to store the session ID. That is all that this setting does in regard to cookies.

如果您使用确实使用cookie的用户控件或应用程序代码,则这些设置不受设置的影响-这样的cookie仍将发送到访问者的计算机上.

If you use user controls or application code that do use cookies, those are unaffected by that setting - such cookies will still be sent to the visitor's machine.

这篇关于是否使用会话state = StateServer和cookieless = true仍将cookie存储在用户的计算机上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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