Get name of current user

I would like to query the user or login name of the current user. How can I accomplish this and where do I have to insert the script?

Best regards!

look here , get the current session