changed logout to end all sessions by same user, adding option to listen for login and logout events