We got a handful of questions about how to do this, so we put together a short video tutorial on how to close tabs or log out users when they’re inactive for a certain amount of time.
I have gone through your video.
I am creating an education app, where students will log in and will get access to the basic course for only two weeks (without making any payment).
After two weeks that access should be blocked/denied and the subscription page should appear. Once he pays he can log in and use the app again.
Can you tell me, how can I log out the user after two weeks automatically if he doesn’t make the payment?
Hi @wsu.app18, you should add a date field to the User data type and call it something like “Trial Expiration”
When the user signs up, set the value of this field to current date/time +(days): 14
Then create a conditional “Page is Loaded” workflow on the course page so the user is redirected once the current date/time has passed the user’s Trial Expiration:
When page is loaded only when current user’s Trial Expiration < Current date/time … Action: Go to Subscription Page.