Modified creation of session_id when connected from an iPad