- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Kiosk applications, such as fast food order machines and airline check-in terminals, often serve multiple users in quick succession. For that reason, triggering the end of a session based on a user action instead of waiting for an automatic session expiration (such as 15 minutes of inactivity or 4 hours total duration) is vital for collecting accurate session data and metrics for each user. With Datadog RUM SDKs, you can use this capability for an improved session tracking experience.
stopSession()
when users end their interactionUse the SDK stopSession()
method to stop the session when the user finishes their interaction with the application, like when returning to the home screen or logging out. A new session is created as soon as a user interacts with the application again or when a new View is started (mobile only).
If a user is identified within the session, you may want to clear user information after calling stopSession()
to start afresh. See documentation based on your application’s framework: Browser, iOS, Android, Flutter, React Native.
This feature requires RUM Browser SDK version >= v4.37.0. See installation instructions here.
The stopSession()
method differs depending on your installation method.
datadogRum.stopSession()
DD_RUM.onReady(function() {
DD_RUM.stopSession()
})
window.DD_RUM &&
window.DD_RUM.stopSession()
If the application is open in multiple browser tabs, stopping the RUM session ends the session in all tabs.
If the application is using the Logs SDK, stopping the RUM session ends the Logs session as well.
The stopSession()
method differs depending on your mobile SDK framework.
This feature requires RUM iOS SDK version >= 1.18.0. See installation instructions here.
RUMMonitor.shared().stopSession()
This feature requires RUM Android SDK version >= 1.19.0. See installation instructions here.
GlobalRumMonitor.get().stopSession()
This feature requires RUM Flutter SDK version >= 1.4.0. See installation instructions here.
DatadogSdk.instance.rum?.stopSession();
This feature requires RUM React Native SDK version >= 1.6.0. See installation instructions here.
DdRum.stopSession()
추가 유용한 문서, 링크 및 기사: