How can I share session like LoginUser value between 2 hosting servers?
I host 2 application one in 10.10.10.120 (IIS 8) and the other on 10.10.10.121 (IIS 8).
I tried use Sql server or NCache server but not worked.
I used same machine Key in 2 apps and same configuration
Note:- I preparing to use Load balance server
I am using NCache and it is working fine for storing sessions in a centralized store. Load balanced applications deployed on two different web servers should be able to use the same session object. I initially used the sample session app which came installed with NCache and then followed below steps which worked for me on the application end.
Session Sharing between same application deployed on two or more Web Servers.
Add NCache Session State Provider Assembly.
Add NCache Session State
Keep same machine key across Web Servers in Load balanced Webfarm.
Deploy same application on all webservers which are load balanced.
Session Sharing between two different applications deployed on two or more Web Servers.
You can also share session data between two different applications if that’s what you are trying to achieve here.