-
Notifications
You must be signed in to change notification settings - Fork 164
Description
What are you trying to achieve and what is your issue? Please describe.
Using @datadog/browser-rum - we currently start a session when a user logs into our application and we would like to completely stop their session when they log out. This way, when they log in again, a new RUM session is created along with the recording. According to the docs, this is not possible. I have tried stopSessionReplayRecording() and stopSession() while having the manual setting turned on. Both did not work.
Describe the solution you'd like
An API to completely stop the session recording, in which a new session recording is created when it is started again.
Describe alternatives you've considered
I've considered deleting the cookie upon user logout. I've tested it and it works, but I don't know if that it the correct solution or intended use of the API. Please advise.