Page 1 of 1
Get session Id from the browser current tab
Posted: 10 Jul 2025, 20:16
by Franck.A
Hi everybody,
I need to get the current session Id which is displayed in the browser tab.
Is there any Axes command that can achieve this ?
Thx in advance to the Axes community
Re: Get session Id from the browser current tab
Posted: 11 Jul 2025, 00:26
by Franck.A
I just found a workaround using javascript, but if anyone finds the Axes command he will be welcome :
let texte = document.title;
let morceaux = texte.split(" - ");
let IdSession = morceaux[1].trim();
Re: Get session Id from the browser current tab
Posted: 04 Feb 2026, 12:13
by Fairdinkum
FYI:
You can also use the following codes.
var dn = ""; // device name
if (AXES.isTS2Engine) dn = AXES.Terminal.deviceName;
else dn = DeviceName;
window.alert("Device = " + dn);
var un = ""; // user name
if (AXES.isTS2Engine) un = AXES.Terminal.jobUser;
else un = tsLoginName;
window.alert("User = " + un);
var jn = ""; // job number
if (AXES.isTS2Engine) jn = AXES.Terminal.jobNum;
else jn = JobNum;
window.alert("JobNumber = " + jn);
Hope this helps.
Regards,
Hide (from Fairdinkum)