You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Current »

This scoped class provides the way to find the information about the current session.

There are no constructors to create an instance of the scoped SimpleSession object. Use the ss.getSession() method instead.

getClientIP()


This method returns the IP-address of the client.


Return:

TypeDescription
String or NULLThe IP address value (String), by default.


Example:

getClientIP
const session = ss.getSession();
const ipAddress = session.getClientIP();
ss.info(ipAddress); // Info: 127.0.0.1

  • No labels