Sessions
This section describes how Uniform handles session management.
#
Session timeoutThe Uniform tracker handles session timeout, but does so a little differently than standard Sitecore.
Session timeout is configured in Sitecore. The default timeout is 20 minutes.
The following example explains how session timeout works:
- Visitor views the site for the first time.
- Uniform tracker creates a new visit.
- Uniform tracker captures a page view activity.
- 2 minutes later the visitor views another page.
- Uniform tracker determines the amount of time between the last time the visit was updated and now. In this case, the difference is 2 minutes.
- Since 2 minutes is less than the session timeout setting, the activity is added to the current visit.
- 30 minutes later the visitor views another page.
- Uniform tracker determines the amount of time between the last time the visit was updated and now. In this case, the difference is 30 minutes.
- Since 30 minutes is greater than the session timeout setting, the current visit is set to have ended 30 minutes ago (i.e. at the time that the visit was last updated).
- A new visit is created.
- The page view activity is associated with the new visit.
#
Session endVersion note
This feature is available in version 5.1+.
When the visitor closes their browser, the current visit ends. The following example explains how this happens:
- Visitor views the site for the first time.
- Uniform tracker creates a new visit.
- Uniform tracker sets a cookie to store the current visit id.
- Visitor closes the browser.
- Browser deletes the visit id cookie.
- Visitor immediately returns to the site.
- Uniform tracker finds no visit id cookie.
- Uniform tracker finds all the visits that are still active (i.e. have not ended).
- Uniform tracker sets the end does for these visits to match the date/time of the last activity captured for the visit.
- Uniform tracker creates a new visit.
- Uniform tracker sets the visit id cookie.