zendframework / zend-expressive-session

Session middleware for PSR-7 applications
BSD 3-Clause "New" or "Revised" License
27 stars 11 forks source link

Ability to use own session save handler #32

Closed batumibiz closed 5 years ago

batumibiz commented 5 years ago

This is a new feature that allows you to use your own session save handler.
See: http://php.net/session_set_save_handler
To use, you need the following:

pine3ree commented 5 years ago

Hello @batumibiz, this should be addressed in https://github.com/zendframework/zend-expressive-session-ext, i.e. in the persistence package that deals with php-ext-session where a save-handler (default is files) (implementing SessionHandlerInterface) is actually used. This package is persistence agnostic, or better, it delegates the persistence matter to subpackages or third-party packages. kind regards

weierophinney commented 5 years ago

Agreed with @pine3ree . As an example, zend-expressive-session-cache would not make use of this, as it is specific to ext-session.

batumibiz commented 5 years ago

Thank you, I agree with you