Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This scoped class provides a method to get the information about the current session.
The constructors to create used for creating an instance of the scoped SimpleSession object are not available. Use the ss.getSession() method instead.
getClientIP()
This method returns the field value containing the IP-address of the client.
Return:
Type | Description |
---|---|
String or NULL | The IP address value (String) , by default. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
const session = ss.getSession(); const ipAddress = session.getClientIP(); ss.info(ipAddress); // Info: 127.0.0.1 |
Table of Contents | ||||
---|---|---|---|---|
|