I do not know if the problem still exists, but I just ran into the same problem and solved it setting a session name before calling session_set_cookie_params()
:
$some_name = session_name("some_name");
session_set_cookie_params(0, "https://stackoverflow.com/", '.example.com');
session_start();
I have changed nothing in my php.ini
but now everything is working fine.