Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fSession database storage

posted by mbarr 7 years ago

It would be great to store session variables in a database. This would be helpful for handling a session across multiple servers. I may just throw it in there for my current project.

You can configure a database-backed fCache instance (fCache#DatabaseBackend) and then tell the session to use it via fSession::setBackend(). Just be sure to use a blob data type for your value column since the session serialization can include null bytes.

posted by wbond 7 years ago