Moved session outside of app.configure()