How to enforce logging in every session?

Why would you want to do that? Logged in just means authenticated. If the user can be automatically authenticated, that’s great. Let them stay authenticated.

Are you seeking to detect user presence? There’s actually what seems like a good solution in the free plugin discussed here:

But, if not, don’t even worry about this.

Example: Let’s say only a Thing’s owner can modify it. Sure, you need to make sure of that and have your pages do stuff like bounce not-logged-in users somewhere safe. And further, you need to have the correct Privacy role settings on various fields so that fields that cannot be modified by just anybody are not modified by just anybody…

But all of that works automagically with login and authentication as built into Bubble. There’s no need to do anything extra.

If you explain your rationale for this more, we can provide tips on how to accomplish what you seek to accomplish.

But this is one of those “cart before the horse” type of question posts, on the face of it. You say, “I need to do x.” But there’s literally no reason to do x. So your actual question is about something else…

What is it you are trying to do?