This blogger assumes that there is a MySQL table with user information determining if a user is logged in or not. It also assumes that every user has a folder in the root of the website.