How to determine current user?

How to determine current user?

After the user is logged in, he sends a request to the server.
From the server how do I find out the username from the request?
Thanks.

                    New to ADSelfService Plus?