• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session errors after updating do 3.1.9

#1
After updating from 3.1.8 to 3.1.9 I'm getting a lot of session errors in all my applications. Those errors are:
  • session_start(): Failed to decode session object. Session has been destroyed
  • Maximum execution time of 30 seconds exceeded
I'm used to upgrade my CI's version very often. It's the first time this had happened. Has anyone experienced something like this? Could it be related to old sessions generated before my upgrade or something like that?
Reply

#2
@etcho,

By any chance did you upgrade or make any changes to PHP?
Reply

#3
My environment remained the same. CI's version is the only thing that changed.
Reply

#4
@etcho,

I know you said the environment remained the same. Did you verified it or are you assuming? Are the permissions the same (especially the session directory)? I'm asking again because something is different between the environments. Did you copy the upgraded code from one environment to the other?
Reply

#5
Just to let other people know, I downgraded my CI to 3.1.8 and everything came back to normal. No more session errors. I'll wait the next release to see if this issue will be resolved.
Reply

#6
What were your session settings when using CI 3.1.9? Also, if using database sessions, what's your session table schema?
Reply

#7
I literally just replaced my system folder to downgrade to 3.1.8. All the settings remained the same, which is this below:


PHP Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = $config['apl_unique_identifier'] . '_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE
Reply

#8
Ohoh - if you are using the files driver, you MUST set the sess_save_path config variable, to hold the absolute path to a writable folder.
Reply

#9
I'm having the same error messages in the log since last CI version: Severity: Warning --> session_start(): Failed to decode session object. Session has been destroyed (...)/system/libraries/Session/Session.php 143
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.