locked
Appfabric session state provider not working RRS feed

  • Question

  • Hi all

    Any help regarding this is highly appreciable, because we are in a very crunch situation.

    We are experiencing strange behavior after changing our web application Session to Appfabric session state provider. We have 3 Appfabric servers and 6 Web servers. As sticky session is not available on our load balancer, we are required to distribute session storage. 

    Issues currently facing are

    • ASP.NET_SessionId is lost in some of the case but not frequent(Most of the time after publishing)
    • When I check Cache statistics for Session Storage, all values are showing '0'.
    • On app pool recycle session is lost

    Appfabric caching is running smoothly without any headaches. When I search Appfabric forum, it seems to have no one facing these kind of issues. 

    From where should I start tracing the problem?  

    Below is the session settings in web.config file.

    <dataCacheClient>
        <hosts>
          <host name="vappapf1" cachePort="22233" />
          <host name="vappapf2" cachePort="22233" />
          <host name="vappapf3" cachePort="22233" />
        </hosts>
        <transportProperties connectionBufferSize="131072" maxBufferPoolSize="16777216" 
    		maxBufferSize="16777216" maxOutputDelay="2" channelInitializationTimeout="60000" 
    		receiveTimeout="900000" />
        <clientNotification pollInterval="60" maxQueueLength="50000" />
    </dataCacheClient>
    <sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider" compressionEnabled="false" timeout="15" cookieless="false" regenerateExpiredSessionId="false">
      <providers>
    	<add name="AppFabricCacheSessionStoreProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="SessionStore" useBlobMode="true" applicationName="TestApp" sharedId="TestApp"/>
      </providers>
    </sessionState>




    • Edited by Subith Sunday, March 31, 2013 4:41 PM
    Sunday, March 31, 2013 12:27 PM

Answers