I am creating a web app using Flask.
I wonder if it is possible to save user session data like
session['ishappy'] = true
in database like it's done in Django using SessionMiddleware where you have options to choose between cookies and database.
And if it is what should I import to my Flask app.