For example, to set up a redis based session storage, you need the
`pyramid-redis-session`_ package, then you must configure pyramid to
use this backend, by configuring the pyramid configuration file:

[main]cubicweb.defaults=no # we do not want to load the default cw session handlingcubicweb.auth.authtkt.session.secret=<secret1>cubicweb.auth.authtkt.persistent.secret=<secret2>cubicweb.auth.authtkt.session.secure=yescubicweb.auth.authtkt.persistent.secure=yesredis.sessions.secret=<secret3>redis.sessions.prefix=<my-app>:redis.sessions.url=redis://localhost:6379/0pyramid.includes= pyramid_redis_sessions cubicweb.pyramid.auth cubicweb.pyramid.login

Warning

If you want to be able to log in a CubicWeb application
served by pyramid on a unsecured stream (typically when
you start an instance in dev mode using a simple
cubicweb-ctlpyramid-D-linfomyinstance), you
must set cubicweb.auth.authtkt.session.secure to
no.