phpsessioncakephpcookies

cakephp 3 [RuntimeException] Unable to configure the session, setting session.cookie_path failed


I try to transfer a cakephp3 application from my local server to a webspace.

I get the following error-message:

[RuntimeException] Unable to configure the session, setting session.cookie_path failed

What does this mean and how can I fix it?


Solution

  • So I applied a workaround:

    following the stacktrace I opened the file

    /app/vendor/cakephp/cakephp/src/Network/Session.php(212): Cake\Network\Session->options(Array)

    and scrolled to line 212

    there I changed

    if (!empty($config['ini']) && is_array($config['ini'])) {
        $this->options($config['ini']);
    }
    

    to

    if (!empty($config['ini']) && is_array($config['ini'])) {
        //$this->options($config['ini']);
    }
    

    My website loads now and I can login and logout.