A class that handles sessions to check whether the user is logged in or logged out