Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This scoped class provides a method used for getting that gets 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.

getClientIP()


This Use this method returns to return the field value containing the IP-address of the client.

Return:

TypeDescription
String or NULLThe IP address value (String) by default. It returns null if there are no IP value.

Example:

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


Table of Contents
absoluteUrltrue
classfixedPosition