AspNet.SessionState.NCache
5.3.7
dotnet add package AspNet.SessionState.NCache --version 5.3.7
NuGet\Install-Package AspNet.SessionState.NCache -Version 5.3.7
<PackageReference Include="AspNet.SessionState.NCache" Version="5.3.7" />
<PackageVersion Include="AspNet.SessionState.NCache" Version="5.3.7" />
<PackageReference Include="AspNet.SessionState.NCache" />
paket add AspNet.SessionState.NCache --version 5.3.7
#r "nuget: AspNet.SessionState.NCache, 5.3.7"
#:package AspNet.SessionState.NCache@5.3.7
#addin nuget:?package=AspNet.SessionState.NCache&version=5.3.7
#tool nuget:?package=AspNet.SessionState.NCache&version=5.3.7
AspNet.SessionState
NCache Session State Provider for ASP.NET applications. This package lets you offload ASP.NET session state storage to NCache, giving you a fast, distributed, and highly available alternative to InProc, StateServer, or SQL Server session modes — enabling your application to scale out across multiple web servers while keeping session data consistent.
Installation
Install-Package AspNet.SessionState.NCache
or, using the .NET CLI:
dotnet add package AspNet.SessionState.NCache
What is Installed
Installing this package adds the following NCache configuration files to your project:
- client.ncconf — Defines the cache client settings, including the cache name and the list of server nodes the client connects to.
- config.ncconf — Contains the cache configuration (cache topology, partitions, eviction policy, etc.) used when the cache is created/registered.
- tls.ncconf — Contains TLS/SSL settings used to secure communication between the client and the NCache cluster, if enabled.
Prerequisites
- .NET Framework 4.6.2+ Application.
- NCache SDK 5.3.7.1 or later.
- An NCache 5.3.7 (or later) server should be up and running, with the target cache already created/registered on it.
Getting Started
Setting up NCache
Before running your application (if NCache is not installed on the current machine), you need to update client.ncconf so the client knows which cache to connect to and where to find it:
- Open
client.ncconf. - Locate the cache entry named
myCacheand rename it to the name of your actual cache (the cache you created/registered on the NCache server). - Under the
serversettings, update the server address to point to one of the nodes in the cluster where that cache is running.
Example:
<cache id="myCache" ... >
<server name="10.0.0.1" ... />
</cache>
Change myCache → YourCacheName, and 10.0.0.1 → the IP/hostname of a node hosting YourCacheName.
Setting up Package
- Register NCache as the session state provider:
- ASP.NET Framework — update
web.config(see Configuration section below).
- ASP.NET Framework — update
Configuration
ASP.NET Framework (web.config):
<system.web>
<sessionState
mode="Custom"
customProvider="NCacheSessionProvider">
<providers>
<add name="NCacheSessionProvider" type="Alachisoft.NCache.Web.SessionState.NSessionStoreProvider" exceptionsEnabled="true" enableSessionLocking="true" enableSessionSharing="false" emptySessionWhenLocked="false" sessionLockingRetry="-1" sessionAppId="NCacheSharedSessionApp" useInProc="false" enableLogs="false" cacheName="YourCacheName" writeExceptionsToEventLog="false" AsyncSession="false"/>
</providers>
</sessionState>
</system.web>
Adjust cache name and other settings as needed for your environment.
Resources
Technical Support
Alachisoft provides various technical support resources.
Visit the Alachisoft Support Center to select a support resource appropriate for your issue. To request additional features or report a documentation discrepancy, contact support@alachisoft.com.
License
Copyright © 2026 Alachisoft. All rights reserved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- Alachisoft.NCache.SDK (>= 5.3.7.2)
- System.Configuration.ConfigurationManager (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.3.7 | 99 | 7/29/2026 |
| 5.3.6.1 | 3,440 | 10/10/2025 |
| 5.3.6 | 415 | 8/13/2025 |
| 5.3.5.1 | 356 | 5/30/2025 |
| 5.3.5 | 406 | 5/16/2025 |
| 5.3.4 | 864 | 6/6/2024 |
| 5.3.2 | 7,385 | 10/9/2023 |
| 5.3.1 | 8,806 | 9/12/2022 |
| 5.3.0 | 1,726 | 4/12/2022 |
| 5.2.1.1 | 1,983 | 3/4/2022 |
| 5.2.1 | 14,022 | 10/12/2021 |
| 5.2.0.1 | 4,531 | 4/6/2021 |
| 5.2.0 | 3,849 | 3/25/2021 |
| 5.1.0 | 3,915 | 11/23/2020 |
| 5.0.4.1 | 2,043 | 11/4/2020 |
| 5.0.4 | 2,102 | 10/28/2020 |
| 5.0.3 | 26,911 | 6/15/2020 |
| 5.0.2 | 2,391 | 1/6/2020 |