如何在两个应用程序之间共享会话 [英] How to share session between two applications
本文介绍了如何在两个应用程序之间共享会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
请帮我分享两个网络应用程序之间的会话
i有app1 asp.net mvc应用
有会话价值。
现在我想从没有sql server的app2访问app1会话
请帮帮我
hi
please help me for share a session between two web applications
i have app1 asp.net mvc appliction
which have its session value.
now i want to access app1 session from app2 without sql server
please help me
推荐答案
我不认为在两个Web应用程序之间共享会话是个好主意。每个Web应用程序都在它自己的进程中运行,并且有它的边界是有原因的。
我建议你在MSDN上查看这篇文章以查看可能性分布式缓存。
http:// msdn.microsoft.com/en-us/magazine/dd861287.aspx [ ^ ]
I don't think it's a good idea to share session between two web applications. Every web application runs within it's own process and has it's boundaries which are there for a reason.
I would suggest you to look at this article on MSDN to see the possibilities with distributed caching.
http://msdn.microsoft.com/en-us/magazine/dd861287.aspx[^]
如下所示。在应用程序之间分享会话不是一个好方法。
在两个不同的asp.net解决方案之间共享会话值使用SQL Server模式 [ ^ ]
分享ASP.NET Web应用程序的会话状态 [ ^ ]
Just see below .Not a good approach to share session between apps.
Sharing session value between two different asp.net solutions using "SQL Server" mode[^]
Sharing ASP.NET Web Application's Session State[^]
这篇关于如何在两个应用程序之间共享会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文