readable sessioCtrl code