Class to manage the current connected user
Use to set and get the user in a session
Functions
Get the user in the current session, throw an exception if the user does not exists
Return type:
User |
Get the user in the current session, return none if the user is not authenticated
Return type:
Optional |
Set the user in the current session
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
user | User |