getValue(); if ($value > self::MAX_LIFETIME) { throw new LocalizedException( __('Admin session lifetime must be less than or equal to 31536000 seconds (one year)') ); } else if ($value < self::MIN_LIFETIME) { throw new LocalizedException( __('Admin session lifetime must be greater than or equal to 60 seconds') ); } return parent::beforeSave(); } }