在 IIS 中,“应用程序”和“应用程序”之间有什么区别? 和“会话”?

发布于 2024-07-09 20:32:27 字数 102 浏览 5 评论 0原文

会话是每个浏览器的(通过 cookie 确定),但是“应用程序”何时开始和结束,以及 IIS 如何知道请求何时是同一个“应用程序”实例的一部分(如果不通过 cookie 完成,与会话相同)?

A Session is per browser (determined via cookies), but when does an "Application" start, and end, and how does IIS know know when a request is a part of the same same "Application" instance (if not done via cookies the same way that sessions are)?

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

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

发布评论

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

评论(2

别把无礼当个性 2024-07-16 20:32:27

“应用程序”范围是全球性的,对网站的每个请求都共享相同的应用程序。 所有用户都可以看到应用程序中存储的任何内容。 应用程序在向网站发出第一个请求时启动,并在 IIS 停止网站时结束(例如,当 IIS 本身关闭或一段时间没有访问网站时)。

"Application" scope is global, and every request to a website shares the same application. Anything stored in the application is visible to all users. The application starts when the first request to the website is made, and ends when IIS stops the website (for example, when IIS itself is shut down, or when the website hasn't been accessed in a while).

忆伤 2024-07-16 20:32:27

当应用程序首次部署在网络服务器上并可供用户访问时,即被称为启动。 每次取消部署或关闭服务器时,应用程序都会结束。

第二部分尚不清楚,但假设为了确定应用程序,每个应用程序都有一个根,该根对于部署在 Web /应用程序服务器上的所有应用程序来说都是唯一的。 因此服务器可以从请求的 URL 中找出这一点。

因此,每个请求都被视为独立的,并且必须使用会话、cookie 等某些机制来将各个请求组合为单个用户会话的一部分。

Application is said to be start when it is first deployed on the webserver and is available to the users for access. Each time it is un-deployed or the server is shut down the application ends.

The second part is not clear but assuming for determining the application, each application has a root which is unique for all the application that are deployed on a web /app server. So the server can figure that out from the URL being requested.

As such each request is considered as separate and some mechanism like sessions, cookies etc has to be used to club individual requests as a part of single user session.

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