You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
This scoped class provides a method to get the information about the current session.
The constructors used for creating an instance of the scoped SimpleSession object are not available. Use the ss.getSession() method instead.
This method returns the field value containing the IP-address of the client.
Return:
Example:
const session = ss.getSession(); const ipAddress = session.getClientIP(); ss.info(ipAddress); // Info: 127.0.0.1