How can I set a variable on the server and then call that variable when I need it?

For example, I would like to set a server variable "User1Name" which is created by logging in.
And then call that variable to be used in the following line...
srcStream.play("User1Name")

Thanks in advance