Emit session_id and uid through events