def session_login(username):
    user = db['users'].find_one(username=username)
    session['user_id'] = user['id']
Initializes the session with the current user's id
dataset/ETHPy150Open huner2/Tiny-CTF-Platform/server.py/session_login