将 php 从版本 4 更新到 5.5 后,在 Kohana 3.3.3 中停止工作会话.. 当您调用: Session :: instance ('database') 时出现错误:“读取会话数据时出错。”
这是为什么?
Session_Exception [ 1 ]: Error reading session data.
SYSPATH/classes/Kohana/Session.php [ 324 ]
319 }
320 }
321 catch (Exception $e)
322 {
323 // Error reading the session, usually a corrupt session.
324 throw new Session_Exception('Error reading session data.', NULL, Session_Exception::SESSION_CORRUPT);
325 }
326
327 if (is_array($data))
328 {
329 // Load the data locally
SYSPATH/classes/Kohana/Session.php [ 125 ] » Kohana_Session->read(arguments)
MODPATH/database/classes/Kohana/Session/Database.php [ 74 ] » Kohana_Session->__construct(arguments)
SYSPATH/classes/Kohana/Session.php [ 54 ] » Kohana_Session_Database->__construct(arguments)
APPPATH/classes/Controller/Base.php [ 17 ] » Kohana_Session::instance(arguments)
APPPATH/classes/Controller/Index.php [ 9 ] » Controller_Base->before()
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Index->before()
{PHP internal call} » Kohana_Controller->execute()
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()