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

Compare with Current View Page History

« Previous Version 4 Next »

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



Конструктор для создания экземпляра объекта SimpleSession с заданной областью отсутствует. Вместо этого используйте метод getSession() API-интерфейса SimpleSystem.

getClientIP()

Returns the IP-address of the client.


Return:

TypeDescription
Mixed | String | NullIP-address value (String), by default.


Example:

getClientIP
var session = ss.getSession();
var addr = session.getClientIP();
ss.info(addr);

  • No labels