Expose a way to get session id
See original GitHub issueIn my app, there is a “debug” page allowing users to send us a report. I would like to be able to display the session id in this report to help the support team accessing the logs corresponding to the session.
Right now I’ve to do something like this:
(datadogLogs.logger as any).session.getId()
It would be convenient to be able to do something like:
datadogLogs.getSessionId()
or
datadogLogs.session.getId()
meaning that the session would not be anymore a private attribute here: https://github.com/DataDog/browser-sdk/blob/master/packages/logs/src/logger.ts#L132
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Does exposing a session ID create security risks?
You're exposing session id's to the browser whenever you store a session id in a cookie. This is how sessions work - the...
Read more >Testing for Exposed Session Variables - OWASP Foundation
All interaction between the Client and Application should be tested at least against the following criteria. How are Session IDs transferred? e.g., GET,...
Read more >Is it unsafe to expose the user his own session ID?
He can see the session id anyway by examining the cookies (with cookies disabled it's usually even appended to every link as a...
Read more >Getting User Id by SessionId (From REST API) - OutSystems
Hi. Is there is a way to get the user id based on the ASP.Net Session Id? The reason for this question is...
Read more >Get Session object from session id - MSDN - Microsoft
If you really need to get values from the other session, I actually suggest that you use internal HTTP calls to a web...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I came here looking for this information, and with the above hints I put
DD_RUM.getInternalContext()
into the Chrome console and one of the returned values issession_id
. Is this what you’re looking for?Hi there 👋 Sorry for the disturbance. May I ask is there any progress on exposing a way to get session-id?