We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

how to store session into database?

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



39.2k
Accepted
answer

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



98.9k

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