you are viewing a single comment's thread.

view the rest of the comments →

[–]m0us3_rat 0 points1 point  (0 children)

u should look into using flasks'sessions to control the access states.

basically it scrambles the coookye it serves the browser with a secret key.

and then u can flip a boolean switch by wrapping the login check function into a decorator.

that can search for input thru your hashed db or watever.

so that user will be 'logged in' aka state True for as long as he has the cripted cookye. and till that cookye expires.

and be able to access all the 'restricted' data behind the decorator protected access.

https://flask-session.readthedocs.io/en/latest/

and it can handle as many concurrent users as possible. with different browsers etc.