Flask: Building Python Web Services by Gareth Dwyer & Shalabh Aggarwal & Jack Stouffer

Flask: Building Python Web Services by Gareth Dwyer & Shalabh Aggarwal & Jack Stouffer

Author:Gareth Dwyer & Shalabh Aggarwal & Jack Stouffer [Dwyer, Gareth]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-03-31T04:00:00+00:00


How it works…

The demonstration in this recipe works exactly as it did in the previous recipe, Simple session-based authentication. Only the implementation differs, but the end result remains the same.

There's more…

The Flask-Login extension makes the implementation of the Remember me feature pretty simple. To do this, we just have to pass remember=True to the login_user() method. This will save a cookie on the user's computer, and Flask-Login will automatically use the same to log the user in automatically if the session is active. Readers should try implementing this on their own.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.