Remove performance bottlenecks and scale up your .NET applications to extreme transaction processing (XTP). NCache provides multiple powerful mechanisms for boosting .NET application performance and scalability.
Built on the distributed caching core, this module provides an extremely scalable ASP.NET Session State storage for apps running in a server farm with a load balancer.
Distributed cache, the core engine of NCache, is extremely fast and scalable. Cache both static and transactional application data and reduce expensive database trips. NCache synchronizes cache updates across multiple servers.
Although adding web servers to the farm is a great way to scale up ASP.NET applications, one thing that does not scale well is ASP.NET Session State itself. Following are some of its drawbacks:
NCache lets you transform your regular ASP.NET sessions into distributed sessions without any code change. You follow a few simple steps and your existing ASP.NET applications can immediately benefit from powerful distributed sessions. Below are some of the benefits of using distributed sessions:
Using NCache Distributed Sessions is very simple. You have three options for incorporating session clustering into your application. Two require no code change and the third requires minor code change. Here they are:
NCache provides an HttpModule for ASP.NET 1.1. This HttpModule intercepts all Http Requests and Responses and synchronizes the regular SessionState with NCache. This allows you to incorporate session clustering without any code change to your ASP.NET application.

Incorporating NCache HttpModule into your ASP.NET is a simple three-step process as described below. Read Using NCache for ASP.NET Sessions for more details.
<appSettings>
<add key="CacheName" value="myReplicatedCache"/>
</appSettings>
<httpModules>
<add name="NCacheWebSessionState"
type="Alachisoft.NCache.Web.SessionState.NSessionStateModule,
Alachisoft.NCache.SessionState, Version=3.2.1.0, Culture=neutral,
PublicKeyToken=cff5926ed6a53769"/>
</httpModules>
Please note "Version=3.2.1.0" should match the NCache version you have downloaded. Once you do this, you're ASP.NET application is ready to start using distributed sessions.

For ASP.NET 2.0, NCache also provides a custom SessionState Provider that synchronizes your regular ASP.NET Session with NCache. This allows you to use session clustering without any code change. Just like the HttpModule option, this is also a simple three-step process as described below. You can also read Using NCache for ASP.NET Sessions for more details.
<assemblies>
<add assembly="Alachisoft.NCache.SessionStoreProvider,
Version=3.2.1.0, Culture=neutral,
PublicKeyToken=CFF5926ED6A53769"/>
</assemblies>
<sessionState cookieless="false" regenerateExpiredSessionId="true"
mode="Custom"
customProvider="NCacheSessionProvider" timeout="1">
<providers>
<add name="NCacheSessionProvider"
type="Alachisoft.NCache.Web.SessionState.
NSessionStoreProvider"
cacheName="myreplicatedcache"
writeExceptionsToEventLog="false"
AsyncSession="false"/>
</providers>
</sessionState>
Please note that Version=3.2.1.0 should match the specific NCache version you've downloaded. Once you do this, you're ASP.NET application is ready to start using distributed sessions.
If you have an ASP.NET application that hosted in multiple geographical locations and you want your users to be bounced from one location to another without losing sessions, you can do that with NCache. In order to do that you need to follow these simple steps. You can also read Using NCache for ASP.NET Sessions for more details.
<configSections> <section name="ncache" type="Alachisoft.NCache.Web.SessionStateManagement .NCacheSection, Alachisoft.NCache.SessionStateManagement, Version=3.2.1.0, Culture=neutral, PublicKeyToken=CFF5926ED6A53769"/> </configSections> <ncache> <sessionLocation> <primaryCache id="londonReplicatedCache" sid-prefix="lndr"/> <secondaryCache id="newyorkReplicatedCache" sid-prefix="nykr"/> <secondaryCache id="tokyoReplicatedCache" sid-prefix="tkyr"/> </sessionLocation> </ncache>
Please make sure that Version=3.2.1.0 matches the specific version of NCache you have downloaded. For more details on this, please see online help.