This project is read-only.

Timeout setting

Sep 23, 2008 at 10:27 PM
I was unable to set the timeout for the session state provider.  Upon checking the code it seems like the code may need to be modified as follows:
SessionStateProvider.cs:   _lTimeoutInMilliSec = (long) _objConfig.Timeout.TotalMilliseconds;

I wanted to share this to confirm that I am not missing something.

This gets the session state provider working with a timeout set at 15 minutes as follows in the web.config:

<!-- Memcached SessionState Provider -->
    <sessionState cookieless="false" timeout="15" regenerateExpiredSessionId="true" mode="Custom" customProvider="MemcachedSessionProvider">
      <providers>
        <add name="MemcachedSessionProvider"
        type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders"
        dbType="None"
        writeExceptionsToEventLog="false"/>
      </providers>
    </sessionState>
    <!-- ****************************** -->
Sep 24, 2008 at 3:46 PM
Edited Sep 25, 2008 at 1:14 AM
Thanks for the code. I will update the provider and post a new release.$0$0- Fahad