getCurrentSessionId

getCurrentSessionId(): String;

The getCurrentSessionId method of the Application class returns a string of up to 16 characters that identifies the current WebSession object.

You can store the returned value in a property defined in the Application class, for example. You should reimplement the processRequest method of the WebSession class and set the value in that method.

When you require the session object for this identifier, you can then call the getCurrentSessionId method on the Application class. If there is no current session, the getCurrentSessionId method returns null ("").

For details about obtaining the current Web session, see the Application class getCurrentSession method.