protected function renewIdentityCookie()
    {
        $name = $this->identityCookie['name'];
        $value = $this->request->getCookies()->getValue($name);
        if ($value !== null) {
            $data = json_decode($value, true);
            if (is_array($data) && isset($data[2])) {
                $cookie = Reaction::create(array_merge($this->identityCookie, [
                    'class' => 'Reaction\Web\Cookie',
                    'value' => $value,
                    'expire' => time() + (int)$data[2],
                ]));
                $this->app->response->getCookies()->add($cookie);
            }
        }
    }