A. Check your iPhone's auto-lock settings. Go to Settings > Display & Brightness > Auto-Lock and set it to 'Never' while using the app to prevent it from going to sleep.
B. If the app has a specific setting for session duration, ensure it is set correctly. Look for any options within the app that control session length.