simplify sessionRestriction