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:
- User an ASP.NET state server and have the web servers point to that.
- 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.
精彩评论