Logs the user in.
The client.
The time the user can be logged in. (In minutes)
The role to login as. (If the role is null then the session won't have a role, causing every request to be authenticated.)
See Implementation
Logs the user in.