Register/Login/Logout

Who have idea about how to make a register login logout
Also ideas about who’s onine last online…
Thank’s