skeeks\cms\checks\SessionCheck::run PHP Method

run() public method

public run ( )
    public function run()
    {
        if (!$this->lastValue) {
            $_SESSION['CHECKER_CHECK_SESSION'] = 'SUCCESS';
            $this->ptc = 50;
            $this->lastValue = "Y";
        } else {
            $this->lastValue = null;
            $this->ptc = 100;
            if ($_SESSION['CHECKER_CHECK_SESSION'] != 'SUCCESS') {
                $this->addError(\Yii::t('skeeks/cms', 'Could not to keep the session'));
            }
            unset($_SESSION['CHECKER_CHECK_SESSION']);
        }
    }
SessionCheck