User ID: new visit after logging out?

In the documentation:

" If a visitor is logged in with a User ID set, their visit is associated with their User ID . If the user were to log out, by default, the User ID is remembered for the entirety of the visit.", see https://matomo.org/faq/general/how-are-requests-with-a-user-id-tracked/

But after setting a userid and calling trackPageview, the next page view without setuserid always leads to a new visit. Why? I’m not calling resetUserId.

Maybe the configuration enable_userid_overwrites_visitorid in Administration cog > Diagnostic > Config file > Tracker?

Perfect! Thank you for the quick help!