Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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:
Type | Description |
---|---|
String or NULL | The IP address value (String), by default. |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
var session = ss.getSession();
var addr = session.getClientIP();
ss.info(addr); // Info: 127.0.0.1 |
Table of Contents | ||||
---|---|---|---|---|
|