public function init() { if ($this->cookieValidationKey === null) { $this->cookieValidationKey = Helper::getRandomKey('request.validationKey'); } foreach ($_COOKIE as $name => $value) { if (is_string($value) && ($data = Helper::validateData($value, $this->cookieValidationKey) !== false)) { $this->_cookies[$name] = $data; } } }