The safe(r) way is to use a global associative array (or object) that contains all your key / value pairs (the $glUserRs in my example). It's still global, but still somehow encapsulated.
But i would rather have an object, e.g. $userInfo, with all the attributes you need ($userInfo->name, $userInfo->group, etc.). You set the attributes of the object in your set_user_info() function. then you can pass the $userInfo object to any function that needs it.
But anyway... i think the global $glUserRs array is an acceptable solution if you don't like OO-style programming =)