在共享同一会话时处理另一个 Web 应用程序时 Web 应用程序被阻止 [英] Web app blocked while processing another web app on sharing same session

查看:27
本文介绍了在共享同一会话时处理另一个 Web 应用程序时 Web 应用程序被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 IIS 中部署了两个 Web 应用程序,即/HRMS、/TravelDesk.两个 WebApp 都通过 AspState 共享会话,配置信息为

Deployed two WebApplications in IIS namely /HRMS, /TravelDesk. Both WebApps are sharing session via AspState, the config information are

<sessionState allowCustomSqlDatabase="true" mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="Application Name=Portal;data source=localhost;Initial Catalog=ASPState;User ID=sa;Password=dev2005" cookieless="false" compressionEnabled="true" timeout="720"/>

用户登录/HRMS 应用程序,然后他在新窗口上导航到 TravelDesk 应用程序,会话在两个 Web 应用程序之间共享.

A user is logged in an /HRMS Application, from that he is navigating into TravelDesk application on a new Window, the session is getting shared across the two web apps.

在 TravelDesk 应用程序中,用户试图上传一堆信息,并且在服务器中处理请求需要更多时间.与此同时,我正在尝试访问/HRMS 应用程序,但它直到 TravelDesk 执行完成才响应?

In TravelDesk Application, a user is trying to upload a bunch of information's, and it is taking more time to process the request in server. In mean time i am trying to access the /HRMS application but it is not responding until the TravelDesk execution complete?

会话会锁定在 SQLServer 中吗?请指导我解决此问题.

do the session will lock in SQLServer? Please guide me to resolve this issue.

推荐答案

 the session is getting shared across the two web apps

如果会话在两个 Web 应用程序之间共享,那么是的,这就是原因.会话锁定响应.

If the session is shared across the two web applications, then yes this is the reason. The session is lock the response.

为避免这种情况,在大量上传信息上禁用会话(仅在处理程序或进行上传的页面上).

To avoid this, on the huge upload information disable the session (only on the handler or on the page that make the upload).

相对:完全替换 ASP.Net 的会话

这篇关于在共享同一会话时处理另一个 Web 应用程序时 Web 应用程序被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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