For getting current login user information you have to do following steps.
Step 1: First reference below dll
Step: 2 write this piece of code
Member memberInfo = Member.GetCurrentMember();
Step: 3 Use following property to retrive login name.
string currUserLoginName = memberInfo.LoginName;
Note: by using another property of memberInfo object you can retrive another information like password, id and many things.