in reply to y username is empty

You're not assigning anything to $pxuser, so it's no surprise that it's empty.

Where exactly is the username transmitted/stored?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.