仅如何在 C# 中声明 COOKIE LESS 会话变量!

发布于 2024-10-02 21:35:39 字数 210 浏览 0 评论 0原文

好吧,我的意思是,正如你将在我的帖子中看到的那样,我因为缓存而遇到问题,

所以我认为 cookie less 尝试

如何声明一个 cookie less 会话变量,而不会使整个网站 cookie 失去

意义,

  • 网站应该是 cookieless=FALSE
  • vairable cookie 不太真实

well i mean, that as u will see in my posts, i am getting problems because of caches

so i think cookie less try out

how to declare a cookie less session variable without making the whole website cookie less

meaning,

  • website should be cookieless=FALSE
  • vairable cookie less true

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ˉ厌 2024-10-09 21:35:39

我不确定您到底在问什么,但如果我正确解析了问题,以下是一些可能有用的内容:

  • 存储在会话状态对象中的值存储在 cookie 中-- 发送到浏览器的唯一 cookie 是会话标识符,它将告诉服务器在响应后续请求时应该获取哪个会话状态。实际的会话状态数据存储在服务器上。
  • 如果您的目标是完全阻止会话 cookie 发送到浏览器,但仍允许会话工作,则可以启用无 cookie 会话。您可以在 MSDN 上的无 Cookie ASP.NET 页面

I'm not sure exactly what you're asking, but if I parsed the question right, here are a few things that may be useful:

  • The values stored in the session state object are not stored in cookies -- the only cookie sent to the browser is a session identifier, which will tell the server which session state it should fetch when responding to subsequent requests. The actual session state data is stored on the server.
  • If your goal here is to prevent the session cookie from being sent to the browser at all, but still allow sessions to work, you can enable cookieless sessions. You can read more about that, the pros and cons as well as how to do it, on the Cookieless ASP.NET page on MSDN.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文