Make the flask sessions permanent so that we can configure their time-out
Add a default value for the time-out of the flask sessions