Hi everyone, been using code ignitor for a few years and love it. Still on v3. First post for me.
We are getting this error message, on an app that is configured to store sessions in the database.
Code:
Exception: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) /var/www/html/system/libraries/Session/Session.php 143
The relevant configuration file (
Code:
application/config/config.php
) contains this entry (and no other entry for
):
Code:
$config['sess_driver'] = 'database';
This is happening in CodeIgniter
running on PHP
, Ubuntu
, and Apache
.
Since the app is configured to store session data in the database, and this seems to work almost all of the time, I think this is an intermittent bug in CodeIgniter.
The line where it's crashing is on a call to PHP's built-in
function. This happens after some code that calls
Code:
session_set_save_handler
. Based on my reading of this code, I would expect
Code:
session_set_save_handler
to have set up all of the required callbacks to ensure that
would succeed, and that does seem like what happens most of the time.
Has anyone else seen this bug? Are there any workarounds? Any other relevant information that I can gather?