This scoped class provides the way to find the information about the current session.
Конструктор для создания экземпляра объекта SimpleSession с заданной областью отсутствует. Вместо этого используйте метод getSession() API-интерфейса SimpleSystem.
Returns the IP-address of the client.
Return:
Type | Description |
---|---|
Mixed | String | Null | IP-address value (String), by default. |
Example:
var session = ss.getSession(); var addr = session.getClientIP(); ss.info(addr); |