Skip to content

Instantly share code, notes, and snippets.

@gayashanbc
Created September 26, 2019 14:35
Show Gist options
  • Save gayashanbc/957b01ca7b84eb1a4518c62f97e09e5b to your computer and use it in GitHub Desktop.
Save gayashanbc/957b01ca7b84eb1a4518c62f97e09e5b to your computer and use it in GitHub Desktop.
getUserSessions(user) demo
var sessions = getUserSessions(user);
for(var key in sessions) {
Log.info(sessions[key].userAgent.browser); // Print the web browser of each user session
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment