Python Flask Tutorial #18 - Noting App: Logging Out

Описание к видео Python Flask Tutorial #18 - Noting App: Logging Out

Today we continue building our noting app in Flask - adding the ability to log out from the signed in user. We use a logout route to pop the user_id session cookie stored for our g.user implementation.

For any viewers that are not following the tutorial series, the logging out implementation shown in this video works for the way we have coded the logged in/logged out logic. It is not compatible with libraries such as Flask-Login or Flask-Security-Too (which often come with a /logout predefined that can be used to log the user out).

Have questions? Feel free to leave them below and I'd be more than happy to help! :)

Комментарии

Информация по комментариям в разработке