Configure session end batching


How to configure the Sitecore batch processing of expired sessions.

Starting with Sitecore 9.3, expired sessions are processed in batches instead of one at a time. You configure the session expiration batch processing with two settings like this:

  1. Go to the \App_Config\sitecore.config file.

  2. In the SessionExpirationBatchSize setting, enter the number of expired sessions to process per batch. The default value is 100 sessions.

  3. In the SessionExpirationProcessingInterval setting, enter the number of seconds between processing a batch. This setting is only used when the number of expired sessions are less than the defined batch size. The default value is 5 seconds.

If you configure both the batch size and the processing interval to 1, Sitecore behaves exactly as before the batch processing feature was introduced.


If you extend the commitSession or submitSessionContext pipelines with additional processors, sessions are no longer necessarily submitted to xConnect the moment they expire.