Maybe you forgot to setup pyramid_beaker properly during application startup as mentioned here
If you want more control, follow this way
Remove the parameter below from your settings.
It is an option for pyramid.session.UnencryptedCookieSessionFactoryConfig
. You switched to using pyramid_beaker.
session.cookie_max_age = 120