getCurrentSessionAndUser

Syntax

getCurrentSessionAndUser()

Details

Get the session ID, username ("guest" if not logged in), remote IP address, and remote port number of the current session.

Parameters

None

Returns

A tuple containing the above-mentioned elements.

Examples

getCurrentSessionAndUser()  
// output: (2333906441, "admin", "127.0.0.1", 60302)