getCurrentSession
getCurrentSession(sessionId: String): WebSession;
The getCurrentSession method of the Application class returns a reference to the
If the session is not valid (for example, the session has timed out and been removed) or the method is called when the application is not a Web-enabled application, the getCurrentSession method returns a null value.
For details about obtaining the session identifier, see the Application class getCurrentSessionId method.