<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="mirabeau">
<!-- This section must be used to configure the sessionstate provider, do not use this section for normal caching. -->
<section name="memcachedsessionstate" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
</sectionGroup>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<appSettings></appSettings>
<!--
Use this section as a template if you're connecting to regular memcached servers.
Note: you must have the enyim.com/memcached section if you're using the parameterless constructor of EnyimMemcachedClient.
-->
<mirabeau>
<!-- you can use protocol="Text" if your memcached is < 1.3 but you should probably upgrade -->
<memcachedsessionstate protocol="Binary">
<servers>
<!-- make sure you use the same ordering of nodes in every configuration you have -->
<add address="127.0.0.1" port="11211" />
<!--<add address="127.0.0.1" port="20004" />
<add address="127.0.0.1" port="20006" />
<add address="127.0.0.1" port="20008" />-->
</servers>
<socketPool minPoolSize="10" maxPoolSize="100" connectionTimeout="00:10:00" deadTimeout="00:00:10" />
<!--
<locator type="Enyim.Caching.Memcached.KetamaNodeLocator, Enyim.Caching" />
<keyTransformer type="add your type here" />
<transcoder type="add your type here" />
-->
<!-- uncomment the section below if your memcached instance requires authentication
<authentication type="Enyim.Caching.Memcached.PlainTextAuthenticator" zone="AUTHZ" userName="USER NAME" password="PASSWORD" />
-->
</memcachedsessionstate>
</mirabeau>
<system.web>
<sessionState
cookieless="false"
regenerateExpiredSessionId="true"
mode="Custom"
timeout="60"
customProvider="MemcachedSessionProvider">
<providers>
<add name="MemcachedSessionProvider"
type="Mirabeau.Web.Session.MemcachedSessionStateStoreProvider"
/>
</providers>
</sessionState>
</system.web>
</configuration>