Not sure I follow. If you're asking how to get some value that is created/set in loggedinuser.php, then that is totally dependent on what that script does, and whether or not it actually returns anything, or sets a variable you can use, or defines a function you can use, etc.