from pyramid.session import SignedCookieSessionFactory

def includeme(config):
    # Create the session factory, we are using the stock one
    _session_factory = SignedCookieSessionFactory(
            config.registry.settings['pyramid.secret.session'],
            httponly=True,
            max_age=864000
            )

    config.set_session_factory(_session_factory)


from pyramid.session import SignedCookieSessionFactory

def includeme(config):
    # Create the session factory, we are using the stock one
    _session_factory = SignedCookieSessionFactory(
            config.registry.settings['pyramid.secret.session'],
            httponly=True,
            max_age=864000,
            timeout=864000,
            reissue_time=1200,
            )

    config.set_session_factory(_session_factory)


Change the timeout, and reissue_time
Change the timeout, and reissue_time

We want to make sure that the session never expires, since this also
causes our CSRF token to expire, which causes issues...
