开发者

Share session among asp.net balanced applications without saving session in DB

Is there a way to share session among asp.net balanced applicatiosn without sav开发者_Go百科ing session in DB (i.e. without using SQLServer sessionState)? Actually, could load balancers take care of that by themselves?


To share a user session, yes. You have two options:

  1. User an ASP.NET state server and have the web servers point to that.
  2. Enable sticky sessions on the load balancer, so that once a session is started on a particular machine, all further requests for that session will go to the same machine. (really this is the less ideal of the two as it can still have problems if the app pool resets etc.)

There are other applications from MS etc, that you can use to store state also.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜