我正在尝试为与我的应用程序建立会话的终结点。我遵循https://book.cakephp.org/3.0/en/development/sessions.html中的所有步骤 但是不行。
我在src / Http / Session / ComboSession.php的数据库中创建了名为session和ComboSession的表,并像cakephp的文档所建议的那样更改了app.php中的配置。
'Session' => [
'defaults' => 'database',
'handler' => [
'engine' => 'ComboSession',
'model' => 'session',
'cache' => 'apc'
]
],
'Cache' => [
'apc' => ['engine' => 'Apc']
]
我也尝试过:
'Cache' => [
'apc' => ['engine' => 'Apcu']
]
我的错误消息:缓存引擎Cake \ Cache \ Engine \ ApcuEngine配置不正确。
答案 0 :(得分:0)
我的求助:
'Session' => [
'defaults' => 'database',
'handler' => [
'engine' => 'ComboSession',
'model' => 'sessions',
'cache' => 'defaults'
]
],
'Cache' => [
'defaults' => [
'className' => 'Cake\Cache\Engine\FileEngine',
'path' => CACHE,
'url' => env('CACHE_DEFAULT_URL', null),
],