fixed SessionActiveLogic