getCurrentSessionAndUser

Syntax

getCurrentSessionAndUser()

Arguments

None

Details

Get the sessionId and username of the current session. Return a tuple with sessionId as the first element and userId as the second element.

Examples

$ getCurrentSessionAndUser()
(1166953221,"admin")