Timeout setting

Sep 23, 2008 at 9: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">
        <add name="MemcachedSessionProvider"
    <!-- ****************************** -->
Sep 24, 2008 at 2:46 PM
Edited Sep 25, 2008 at 12:14 AM
Thanks for the code. I will update the provider and post a new release.$0$0- Fahad