GlideSession - isLoggedIn()

Determines if the current user is currently logged in.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the current user is logged in.

Scoped equivalent

To use the isLoggedIn() method in a scoped application, use the corresponding scoped method: Scoped GlideSession - isLoggedIn().

var session = gs.getSession();
var loggedIn = session.isLoggedIn();
gs.info(loggedIn);

Output:

true