在IIS中丢失会话 [英] Losing the session in IIS

查看:115
本文介绍了在IIS中丢失会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我开发了一个网站,并在IIS中以名称(abc)进行配置,然后将同一网站复制到另一个目录,该网站也在IIS中以不同的名称(def)进行了配置.

两个应用程序都运行良好.


现在,我打开abc应用程序(abs/default.aspx),然后在另一个选项卡中打开def应用程序(def/default.aspx).在这种情况下,当我在第二个选项卡中登录第二个(def)应用程序时,第一个(abc)应用程序将丢失会话,然后自动注销.

请说明问题并提供解决方案.

Hi Friends,

I developed a website and configured in IIS in the name(abc) and then I copied the same website to another directory and that also configured in IIS with different name(def).

Both the application are working good.


Now, I am opening the abc application(abs/default.aspx) and then in another tab I''m opening def application(def/default.aspx). In this case when I login the second(def) app in the second tab , the first(abc) app is losing the session and then logs out automatically.

Please explain the problem and give me the solution.

推荐答案

我认为两个应用程序都共享公共应用程序池(即使用同一应用程序池)来响应请求从克林特.您需要在不同的应用程序池上运行两个应用程序.希望这会对您有所帮助.
I think that Both Application are Sharing the Common Application Pool(i.e Using the same Application Pool) to Response the Request From Clint. You need to Run Both the Application on Different Application pools. Hope this will Help you.


尝试通过此代码在sql服务器中使用存储会话
http://bprogrammer.mihanblog.com/ [ ^ ]
首先将此博客从波斯语翻译为英语,然后使用它.
try use storing sessions in sql server via this code
http://bprogrammer.mihanblog.com/[^]
first translate this weblog from persian to english then use it.


这篇关于在IIS中丢失会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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