Is it possible on a mobile app to have a specific session login max idle time setting defined that might be different than the one defined on the current environment configured in Service Center on Administration > Security > app authenthication ?
In OutSystems 11, the default session login Max Idle Time for mobile applications is configured environment-wide in Service Center under "Session Login Settings". This setting applies globally, and it cannot be overridden on a per-application basis directly within the platform Mobile: When the session.
Max Idle Time
If you need a custom session management mechanism for a specific application, you can implement it programmatically. For instance, you could use a global Client Variable to track user activity and implement logic to enforce a custom idle timeout. You may need to store the last activity timestamp and check it in OnApplicationReady or OnApplicationResume client actions during app events Outsystems Mobile: Alert User 1 hour before his persistent Login Expires.
OnApplicationReady
OnApplicationResume
While this approach gives you flexibility, note that it does not modify the actual environment-wide settings. Instead, it establishes a custom session management mechanism solely within the scope of your mobile app.
Hi @José Pedro Mascarenhas ,
The Max Idle Time setting is configured at the environment level in Service Center, so it applies to all applications and cannot be set individually for a specific mobile app.
regards,
Manish Jawla
As already told, in short: No, the OutSystems Platform does not natively allow you to define a different Max Idle Time for a specific mobile app through the standard Service Center UI. These settings are applied at the environment level and affect all applications sharing the same User Provider.
If you want one specific app to have a longer idle time than the environment default, you can implement a "heartbeat", where we Use a JavaScript Timer or the OnReady event to call a dummy Server Action every X minutes. This will result in a reset the idle timer on the server, keeping the session alive indefinitely as long as the app is open.
Also you can search on forge some components that will help you on this.