So basically you want to persist the session at the application, which you could probably do with a cookie?
Hey Arunkumar Jaganathan,
This following part is for coockie
You can accomplish this by running the application locally and navigating to the folder MendixApp/Deployment/Web/Index.html. In that location, you will find a section that is automatically generated for cookies. It should resemble the following:
if (!document.cookie || !document.cookie.match(/(^|;) *originURI=/gi)) document.cookie = "originURI=/login.html" + (window.location.protocol === "https:" ? ";SameSite=None;Secure" : "");
You can copy that part and paste it (within the script section) into your Index.html file, which can be found in the folder MendixApp/theme/web/Index.html. If this doesn't resolve the issue, you may need to make some changes to the mentioned code.
And in addition you should create custom logic where you should add boolean to account entity that can be called IsFirstLogin and in navigation you wanna go to Home pages -> Roile-based home pages where you can create microflow that will check that boolean and redirect user to Home screen or login page.