Login/Logout of Membership

How do I setup login/logout and showing of current status - that they are logged in?