Configure a dedicated Expired Session Processing server
The Sitecore Experience platform supports a dedicated server for expired session processing. This means that if you have an environment using a cluster of CD servers, you can configure some of the servers to only serve content, but not to process the expired session state data by using the pollingEnabled setting. The pollingEnabled setting specifies whether to enable processing of expired sessions (default value is true). For example, you can enable it on the CD servers that are dedicated to expired sessions processing and disabled it on the live CD servers, (that serve content to visitors).
You must ensure the servers that are dedicated to expired session processing are not serving content to visitors. For example, if you have configured a load balancer for CD servers, you must ensure requests do not redirect to servers that are dedicated to expired sessions processing.
Enable or disable expired session processing for private sessions
To configure the dedicated expired private session processing:
-
Go to the
web.configfile and check thepollingEnabledvalue is set totruefor your dedicated expired session processing servers.
To disable expired session state processing for the CD servers that serve content to visitors:
-
Go to the
web.configfile and set thepollingEnabledvalue to false:RequestResponse<sessionState mode="Custom" customProvider="<configured custom provider name>" timeout="20"> <providers> <add name="="<configured custom provider name>" … pollingEnabled ="false" applicationName="private"/> </providers> </sessionState>
Enable or disable expired session processing for shared sessions
To configure the dedicated expired shared session processing:
-
Go to
App_Config\Sitecore\Marketing.Trackingand in theSitecore.Analytics.Tracking.configfile leave thepollingEnabledsetting set to true for your dedicated expired session processing servers.
To disable expired session state processing for those CD servers that serve content to visitors:
-
Go to
App_Config\Sitecore\Marketing.Trackingand in theSitecore.Analytics.Tracking.configfile set thepollingEnabledsetting to false:RequestResponse<sharedSessionState mode="Custom" customProvider="<configured custom provider name>" timeout="20"> <providers> <add name="="<configured custom provider name>" … pollingEnabled ="false" applicationName="shared"/> </providers> </sharedSessionState>