The j2eeLib.getSessionAttr() system function uses a specified key to retrieve a value from session scope storage.
If a value is not found with the specified key, the function returns a null value. If the retrieved value is the wrong type, EGL throws a J2EESessionRequestAccessException.
You can place a value in session scope storage by using the j2eeLib.setSessionAttr() system function. The value placed in the servlet's session scope storage is available for the duration of the client connection, or until you explicitly remove it with j2eeLib.clearSessionAttr() or j2eeLib.clearEGLSessionAttrs().
j2eeLib.getSessionAttr() is overloaded, which means that you can call the same function name with different configurations of parameters and return values. The first form below, with a single parameter, is preferred; the second form, with two parameters, is maintained for backward compatibility.
j2eeLib.getSessionAttr( key STRING in) returns (value ANY)
or
j2eeLib.getSessionAttr( key STRING in, value ANY in)