Hi
We use distributed cache for ASP.Net Session
<sessionState mode="Custom" customProvider="AFCacheSessionStateProvider" timeout="120"> <providers> <add name="AFCacheSessionStateProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="session" dataCacheClientName="session" applicationName="AFCacheSessionState"/> </providers> </sessionState>
When I try to change the time in runtime (global session_start or master page page_load)
Session.Timeout = 1;
this value is not taken into account -> session is not expired.
if I change timeout value directly in web.config it works.
When I switch to
<sessionState mode="InProc" timeout="120"></sessionState>it works as expected.
Any inputs?