python flask login information | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

python flask login information

I am trying to do a login based web application using flask and sqlite3. I had created the routes and the database. Now I am wondering how can I check if the user is logged in and how can I restrict a user that is not connected. Is there a specific way to do it? https://code.sololearn.com/cOgIJLHrEAFK/#py - here is the login.py file https://code.sololearn.com/cqizFmjKqM8R/#py - and here the app.py

9th Nov 2020, 9:14 PM
tibi
tibi - avatar
1 Answer
0
Use session in flask to create and fetch cookies from browser Take a "Flask Session" tutorial from YouTube
11th Nov 2020, 3:27 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar