How to Solve NameError: name 'Session' is not defined -- flask

Solution: Import the 'Session' module

To Solve the error, add the following line to the top of your code.

from flask.ext.session import Session

 

For more information:
Python flask Session