def session_regenerate_id(space, delete_old_session=False):
    """Update the current session id with a newly generated one"""
    if space.ec.interpreter.session.is_active():
        space.ec.interpreter.session.create_id()
        return space.w_True
    return space.w_False