When the login feature is enabled, you can set rules that will validate every time the user loads a form or portal. You can set the criteria like this:
For a Form, select Share in the Builder toolbar. For a Portal, go to Users & Login.
Turn on Conditional Login
Add Condition(s)
If the conditions are no longer met when a user loads a form or portal, they will be logged out.