src/Web/Sessions/Session.php
protected function createSessionCookie() {
        $_params = $this->getCookieParams();
        $config = [
            'class' => 'Reaction\Web\Cookie',
        ];
        foreach ($_params as $key => $value) {
            if ($key === 'httponly') {
                $key = 'httpOnly';
            } elseif ($key === 'lifetime') {
                $expireValue = intval($value);
                if (empty($expireValue)) {
                    continue;
                }
                $key = 'expire';
                $value = time() + $expireValue;
            }
            $config[$key] = $value;
        }
        $config['value'] = $this->id;
        $config['name'] = $this->getName();
        return Reaction::create($config);
    }
protected function createSessionCookie() {
        $_params = $this->getCookieParams();
        $config = [
            'class' => 'Reaction\Web\Cookie',
        ];
        foreach ($_params as $key => $value) {
            if ($key === 'httponly') {
                $key = 'httpOnly';
            } elseif ($key === 'lifetime') {
                $expireValue = intval($value);
                if (empty($expireValue)) {
                    continue;
                }
                $key = 'expire';
                $value = time() + $expireValue;
            }
            $config[$key] = $value;
        }
        $config['value'] = $this->id;
        $config['name'] = $this->getName();
        return Reaction::create($config);
    }
Create session cookie
@return Reaction\Web\Cookie