Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How do I configure db sessions?
  • For production, should I use db sessions?
    If so, how do I tell fuel to use a database?

    Thanks
  • HarroHarro
    Accepted Answer
    Doesn't really matter what you use, I'd only advice not to use cookie based sessions but use a servers-side store.

    Fuel supports quite a few, and they all have their pro's and con's. Memory based ones (memcached, redis) are faster, but local and not (always) persistent. DB is slower, but persistent, and sessions also easily scale over multiple frontends.

    Database configuration is documented here: http://fuelphp.com/docs/classes/database/introduction.html#/configuration. As suggested, use environment config and not global config, so you can have different configuration files for your development and production environments.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion