php - session_start() is not success when use multi byte into the session in cakephp3 -
recently started use cakephp3.1 , error bellow.
warning (2): session_start(): trying destroy uninitialized session [core/src/network/session.php, line 324]
warning (2): session_start() [function.session-start]: failed decode session object. session has been destroyed [core/src/network/session.php, line 324]
warning (2): session_start() [function.session-start]: cannot send session cache limiter - headers sent (output started @ /home/www/service/vendor/cakephp/cakephp/src/error/debugger.php:742) [core/src/network/session.php, line 324]
when set multi byte word session such login user's name japanese or multi byte word set flash, it's happen.
so assumed did't installed mbstring extension. there's installed.
this happens due session storage not being able handle multibyte characters. if storage mysql database setting
character set utf8
collation utf8_general_ci
for table , the field holding session data solves these problems.
Comments
Post a Comment