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)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,888 Super User 2024 Season 2
Martin Dráb 229,247 Most Valuable Professional
nmaenpaa 101,156