Warn a user before a session timeout

Brian Bush
Giga Guru

We have set glide.ui.session_timeout to 15 minutes as per our own corporate policy.

We have also set glide.ui.forgetme as per ServiceNow hardened instance recommendations.

Has anyone come up with a good way to warn users before their session times out?

It seems like some combination of v_user_session and gs.getSession might be useful.

1 ACCEPTED SOLUTION

I've been working on a Platform session timer, you can view my code on my github.   I'm still working on the documentation and we are testing in our corporate development environment.   https://github.com/xxJimxx/SNTimeout/  



Let me know what you think or if you have improvement suggestions.


View solution in original post

11 REPLIES 11

Super old thread, but thought I would comment.
I used code very similar to above.  I added in a glide ajax.  
Anytime the counter had counted down to a predetermined value (say half way) and it had reset, I issued a simple glide ajax that just returned the current server time.  This glide ajax would reset my session.  This kept my session alive as long as I was doing something on the form and worked like a charm.

 

Check out my Consultant's Survival Guide
https://youtube.com/watch?v=zYi8KhP9SUk

Sherry Reeves
Tera Contributor

Brian--were you guys able to get this to work?  I see you accepted a solution but just curious as to which solution worked.  Also, are you guys running in a SSO environment?