Fixed session hash comparison on logic.