Skip to content

🙏 Completely stopping a RUM recording session manually #3966

@n-ochs

Description

@n-ochs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions