September 2017
Intermediate to advanced
408 pages
9h 25m
English
A server script may get executed depending upon the database operation or some event. At times, it might be required to determine whether the script being executed is for an interactive user session. An interactive user session means that the user manually logged in using the sign-in screen. On the other hand, if it was a REST API or SOAP call that triggered the server-side script, the session is not considered to be interactive.
Usage:
gs.isInteractive(); //returns true if the session is interactive
Example:
if ( gs.isInteractive() ) {
// some code
}
Read now
Unlock full access