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.config
file and check thepollingEnabled
value is set totrue
for 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.config
file and set thepollingEnabled
value to false:RequestResponseshell<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.Tracking
and in theSitecore.Analytics.Tracking.config
file leave thepollingEnabled
setting 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.Tracking
and in theSitecore.Analytics.Tracking.config
file set thepollingEnabled
setting to false:RequestResponseshell<sharedSessionState mode="Custom" customProvider="<configured custom provider name>" timeout="20"> <providers> <add name="="<configured custom provider name>" … pollingEnabled ="false" applicationName="shared"/> </providers> </sharedSessionState>