Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

how to store session into database?

hi all, how to store session into database with phalcon?



24.6k
Accepted
answer

Create Db class which extends \Phalcon\Session\Adapter and implements \Phalcon\Session\AdapterInterface



83.4k

You can find an adapter to store sessions in a database in the incubator: https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Session/Adapter#database