As the exception message, the method name and the rest of the code indicates, it configures the session settings, session name, cookie lifetime, save handler, etc...
Your code may run fine, and you should be able to use the PHP session_*()
functions instead to configure the settings (the best place for that would probably your bootstrap.php
). Also writing a dummy value into $_SESSION
seems to prevent the CakeSession::_configureSession()
to use ini_set()
, so you don't have to modify it.
So this might work, but it shouldn't be necessary to jump through such hoops. There's no need to disable ini_set()
in a properly set up shared hosting environment, and personally I'd change the hoster in case they are unable to change this behaviour.