开发者

Passing session variables to different application on different server

HI,

We have two applications to be hosted on two different servers. The applications will be built in .NET3.5 and hosted using II开发者_如何学GoS. We want to share the session variables between the application which will be on different servers. Is there some way through which we can achieve this.


If these are two different applications then you will not be able to share session data between them. StateServer is intended to share session between the same application hosted in a web farm although there are some hacks that might allow you to do this which involve tweaking with the application name. You will need to implement some custom mechanism to synchronize sessions between those applications.


The default way of storing session data on the server is InProc, which stores the session data in the memory of each server.

To share the sessions between servers you need to use either of the modes StateServer, SQLServer or Custom instead.

Read more on Session state modes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜