User session longer than the setting in glide.ui.session_timeout

Linda Kendrick
Kilo Guru

I have set the glide.ui.session_timeout to 20 minutes. We are having users install a browser extension that does an automatic refresh. The session is getting refreshed according to the setting in the extension. If a user sets this to 5 minutes, then the session is refreshed every 5 minutes. The 20 minutes timeout setting in ServiceNow doesn't make the user login in again. The session inactivity never gets to 20 minutes. There are users who have set this to every 5 minutes - 15 minutes. Users are also not logging out at night or over the weekend creating excessive and unnecessary log entries.

Has anyone run across this or have an idea to how to really end a users session after a specified time?

1 ACCEPTED SOLUTION

There is a business rule on sys_user called "Lock Out User".


The script is utilizing a GlideSession object - that looks like it would do the job and you could run it for all users (except admins and MID server and other system users)


View solution in original post

10 REPLIES 10

Priyanshu
Giga Expert

Hello all,

I have the session id and user id of the user. I want to create a scripted API which will take input as session id and user and it will check it in logged in user table if the session id or user exist in return it should give me the complete details of the user from user table.

I am struggling with the script, Request you all to help me out on this it is a critical requirement.

Thanks in advance