Can somebody help me understand how to retrieve user profile data when that user logs-in. I'm relatively new to this and am currently developing a site with javascript, ajax and php. For example in Facebook when a user logs-in their profile data is then displayed in their profile page. Im guessing that there is a default profile html file which is then filled with data using php depending on which user signs in.
I hope this is a clear explanation of my objective. I would like to know what php functions and methods i need to research for this task. And whether my guess is accurate?!