-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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