Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose a way to get session id

See original GitHub issue

In 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:




meaning that the session would not be anymore a private attribute here:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

paulclarkincommented, Jul 14, 2021

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 is session_id. Is this what you’re looking for?

ivanzuskocommented, May 12, 2021

Hi there 👋 Sorry for the disturbance. May I ask is there any progress on exposing a way to get session-id?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found