This might be a stupid question, but I cannot find answers from MS documents.
From JavaScript, how can I get the session ID as shown above?
Thanks a million,
Ning
This might be a stupid question, but I cannot find answers from MS documents.
From JavaScript, how can I get the session ID as shown above?
Thanks a million,
Ning
It is in sessionStorage, pretty easy to read
var storage = window.top.sessionStorage;
var sessionId = storage.getItem("UNEXPECTED_TERMINATION");
Hope, that can be useful to someone who are facing the same issue, sometime, sessionId will take 1 second to load, so add a timeout statement over will be a great idea
I don't think there is a way (also unsupported) to get that value.
Do you have a specific reason to have it? Technically should be the same as putting a GUID inside the sessionStorage (and I am not suggesting to do)
André Arnaud de Cal...
293,140
Super User 2025 Season 1
Martin Dráb
231,895
Most Valuable Professional
nmaenpaa
101,156
Moderator