getCurrentSession

getCurrentSession(sessionId: String): WebSession;

The getCurrentSession method of the Application class returns a reference to the WebSession object of the session identifier specified in the sessionId parameter.

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.