i don't know how it sounds but you can have a common table for both apps to keep a record of users log-in activity ,lets say login time and logout time ,
so if the user opens the Process app, verify if logout is filled for the current user in Main file.