Moved operator== and operator!= inside of Session.