This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
'redis' as php_save_handler #97
Closed
Description
- I was not able to find an open or closed issue matching what I'm seeing.
- This is not a question. (Questions should be asked on slack (Signup for Slack here) or our forums.)
Just upgrade from 2.8.0 to 2.8.1 and noticed that the save_handler is treated differently now
Code to reproduce the issue
You can reproduce it by using a redis server as your session handler.
Here is part of our code, obviously I can't share the full thing.
$config['session'] = [
'php_save_handler' => 'redis',
'save_path' => 'XXX',
'gc_maxlifetime' => 60 * 60 * 24
];
Actual results
Zend\Session\Exception\InvalidArgumentException: Invalid save handler specified ("redis"); must be one of "files" or a class implementing SessionHandlerInterface
Expected
Either there needs to be a Redis SaveHandler class or it should be treated just like 'files'
Sidenote
The example in the Documentation now breaks,
https://framework.zend.com/manual/2.4/en/modules/zend.session.config.html#id3
Metadata
Metadata
Assignees
Labels
No labels