Scoped GlideSession - getSessionToken()

Returns the session token.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The session token.

var session = gs.getSession();
var token = session.getSessionToken();
gs.info(token);

Output:

4284b5372b840200c5244f74b4da15f2c3476cf7fcb6572afa4ef9d5e6d307a5fd9e1da7