session_opts = {'session.type': 'file', 'session.cookie_expires': 300,
    'session.data_dir': './data', 'session.auto': True}
myapp = SessionMiddleware(app, session_opts)
How to use beaker session in bottle micro framework?