# getCurrentSessionAndUser {#getcurrentsessionanduser}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getCurrentSessionAndUser()`

## Arguments {#arguments}

None

## Details {#details}

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

**Return value**: A tuple containing the above-mentioned elements.

## Examples {#examples}

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

