将 iis 会话数据保存到磁盘

发布于 2024-12-14 22:03:47 字数 182 浏览 4 评论 0原文

我有一个通过 IIS 7 托管的 asp.net mvc 站点。我相信默认情况下会话数据保存在服务器的内存中。

是否有某种方法或设置可以更改,以便 IIS 将会话数据保存到磁盘?

希望这是有道理的。我不是一个真正的服务器人员,也不了解如何在服务器上管理会话的很多细节。任何细节/文章都会有帮助。

谢谢。

I have a asp.net mvc site that being hosted via IIS 7. I believe by default the session data is save in memory on the server.

Is there some way or setting to change so that IIS will save session data to disk?

Hope this makes sense. I'm not a really server guy and don't understand a lot of the details of how sessions are managed on the server. Any details / articles would be helpful.

Thanks.

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

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

发布评论

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

评论(1

苏璃陌 2024-12-21 22:03:47

有几种不同的方法可以做到这一点。您可能应该查看MSDN - 会话状态模式

其中一种选项是使用 SQL Server 在多个 IIS 服务器之间和/或在重新启动 AppPool(或与此相关的服务器)时保留。

There are few different ways to do this. You should probably take a look at MSDN - Session-State Modes.

One of the options is to use SQL Server to persist across multiple IIS servers and/or when an AppPool is restarted (or server for that matter).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文