Retrieve Members Data?

Hi,
Well basically once a user logs in I want to set some varibles with information of the account, mainly there username and membership type, is there a built in way to do this? or even a manual way?
Well basically once a user logs in I want to set some varibles with information of the account, mainly there username and membership type, is there a built in way to do this? or even a manual way?