designcourse
designcourse copied to clipboard
🙏 How to disable cookie?
What are you trying to achieve and what is your issue? Please describe.
I am using @datadog/browser-logs with custom proxy, therefore I do not need the SDK to set _dd_s cookie. How do I disable _dd_s cookie?
Describe the solution you'd like
I want to use datadogLogs with custom proxy but without _dd_s cookie?
Hello @alexeychikk,
The @datadog/browser-logs SDK does compute and store the session id in the cookie like the @datadog/browser-rum. This allowing grouping your logs by session id @session.id:.... We currently don't support disabling the session management for logs. I’ll keep you informed if there are any updates.
👋 Hi there,
Since v5.35.0, you can use datadogLogs.init({ ..., sessionPersistence: 'local-storage' }) to use the local storage instead of cookies for sessions. See docs.
Disabling session persistence is not yet supported.