1.0 Session State Provider BetaIf you need Win32 port of memcached and install instructions, please go to the following website
http://jehiah.cz/projects/memcached-win32This provider uses SQL Server 2005 to provide reliable storage. For more info, please refer to following
http://www.socialtext.net/memcached/index.cgi?sessions. In future, I will be adding support for other databases.
Session State Provider does not support Session_OnEnd. Therefore, to clean expired data in SQL Server 2005 use proc_CleanExpiredData.sql stored proc. This can be scheduled to automatically clean expired data using SQL Server Agent.
Here is an example of how to configure the Session State Provider in the web.config file.
writeExceptionsToEventLog does not work right now. I will be adding support for it in a later release.
<configuration>
<appSettings/>
<connectionStrings>
<add name="SqlSessionServices" connectionString="Data Source=.;Initial Catalog=Session;User Id = sa; Password = sa123;"/>
</connectionStrings>
<system.web>
<sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="MemcachedSessionProvider">
<providers>
<add name="MemcachedSessionProvider" type="SessionState.SessionStateProvider"
connectionStringName="SqlSessionServices" writeExceptionsToEventLog="false"
servers="127.0.0.1:11211" socketConnectTimeout="1000" socketTimeout="1000"/>
</providers>
</sessionState>
</system.web>
</configuration>
Referencehttp://msdn2.microsoft.com/en-us/library/ms178588(VS.80).aspx