Session context example for access policy
We can specify an access policy that makes access decisions based on context that is obtained from the session.
var session = context.getSession(); //If a session attribute called 'text' exists the following function will retrieve its value var sessionData = session.getAttribute("text");
Parent topic: Access policy development