Called after z_context:ensure_session.
Check if the session contains an authenticated user id.
When found then the user_id of the context is set.
Also checks any automatic logon methods like "remember me" cookies.