How to implement authorization in Flask? How to obtain the latest online user?

Just started to deal with Flask, do not judge strictly=)
1) are you Going to implement login/logout a user using a variable in session (session['username'] = username). Are there better options? ORM, Flask-Login, etc. can not use on the job.
2) it is Necessary to obtain the date and time when the user was online last time. The only idea at the moment - every minute an ajax request and updates the corresponding record (vremena) in the database.
April 3rd 20 at 18:54
0 answer

Find more questions by tags PythonJavaScriptFlask