25
Views
5
Comments
Keep Session Active for a Specific User

Hi,

Is it possible to disable or bypass the automatic session timeout for a specific user?

One option is using a JS timer (for example, every 5 minutes) to keep the session alive, but I’m not sure if this is the recommended or optimized approach. Is there any better alternative?

UserImage.jpg
Jayaprakash Ramesh

hi @Tamilselvan M

This isn’t something you can really do on a per-user basis. Session timeout in OutSystems is managed at the application/platform level and there’s no supported way to disable or bypass it for a specific user

Using a JS keep-alive timer will work technically, but it’s usually not recommended. It ends up keeping sessions alive even when the user isn’t really active, adds unnecessary server traffic, and can raise security concerns

If the need is to support long-running screens (like monitoring or dashboards), a better approach is to design the use case so it doesn’t depend on an active session, or to handle session expiration gracefully ,for example, detecting it and asking the user to re-login
i hope you find the answer as well !
keep rocking ...

2022-06-21 09-23-29
Prathoswar

Hi @Tamilselvan M 

There is no way you can extend session for specific user. But you can try this alternative. You can use autologout component which will intimate the user that their session is going to end due to their inactivity. If they want to extend session, they can select stay logged in. You can also clone and modify the component to call a dummy server action in stay login button, as there was server interaction the session will be extended.

2025-02-10 17-24-13
Arun Rajput

Hi @Tamilselvan M ,

You can use “SessionTimeOut” forge or other component which help you to keep session alive it will trigger the popup after sometime to stay login or logout.

2026-01-15 03-18-59
Vijay Malviya

Hi @Tamilselvan M 

In my opinion, OutSystems does not support disabling or bypassing the session timeout for individual users; using JavaScript keep-alive timers is discouraged, and the recommended approach is to design stateless flows or handle session expiration gracefully.

2018-12-10 12-16-21
Goncalo Duarte Almeida

Hello @Tamilselvan M 

OutSystems does not provide a supported way to change the platform session timeout for a single user. The session timeout is configured at the environment / platform level (machine config or Factory Configuration) and applies to sessions globally. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.