def log_in_user(user):

    session_id = uniqid()
    redis.setex(
        session_id,
        2 * 7 * 24 * 60 * 60,
        user['id'],
    )
    return session_id
Log in the given user.
dataset/ETHPy150Open heiskr/sagefy/server/framework/session.py/log_in_user