Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Created May 20, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wesley-Lomax/a3b213a21e34f66048bc75a07919e9eb to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/a3b213a21e34f66048bc75a07919e9eb to your computer and use it in GitHub Desktop.
A Config Transform to change session state provider to mongo db for a Sitecore8 solution.
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web>
<sessionState mode="Custom" customProvider="mongo" cookieless="false" timeout="20" xdt:Transform="Replace">
<providers>
<add name="mongo"
type="Sitecore.SessionProvider.MongoDB.MongoSessionStateProvider, Sitecore.SessionProvider.MongoDB"
connectionStringName="session"
pollingInterval="2"
compression="true"
sessionType="private"/>
</providers>
</sessionState>
</system.web>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment