Idle Session timeout Warning
Question
Application Type
Reactive

Hi,

I want to give alert message when user is idle for X min before MAX_Idle_SessionTimeOut (default in Outsystems is 20 min). And After MAX_Idle_SessionTimeOut it should automatically logout.

How to achieve it in Reactive application. For quick implementation .oml will help. (Not by using any component. I think some JavaScript will do this)

thanks..... 

Hi @Rohan Jain , I found this in the forge https://www.outsystems.com/forge/component-overview/10443/single-session-user-login-ideal-session-timeout

I didn't use it yet, but it could work for what you want.


Regards,

Luis Oliveira

Hi @Luis Filipe Oliveira 

Thanks for response.....first of all I don't want to use any component so I really haven't check whether it fit for my requirement or not.

Ok. Since you don't want to use any component, this one it's a good one to get some ideas to build your own.


I didn't check how it works, another approach is for example:

  • but you can use a session/variable with the time that the user enter in the screen
  •  if the user press a key or move the mouse, you can reset the time for example
  • If the timer is near that time you, you can launch a modal saying that will be disconnect or if he want to continue.
  • if is passed you can logout the user.


    that.popupTimeout = setTimeout( that.triggerWarningPopup, that.timeForPopup);
    that.logoutTimeout = setTimeout( that.sessionExpired, that.inactivityTimeLimit);

Eg: https://stackoverflow.com/questions/667555/how-to-detect-idle-time-in-javascript-elegantly

Regards,

Luis

Hi Rohan,

Please take reference of below link and find  your answer:

https://www.outsystems.com/forums/discussion/34538/change-login-session-timeout/

kind Regards,

Ajit Kurane.

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