Kill logged in session of user when session times out

arshad199110
Tera Contributor

How can we kill the logged in session of a user when the user session times out.

 

I am trying to navigate user to the microsoft login page when user session times out, where he can press login button to login again. For this we have set the logout redirection to microsoft login page. But, what happens is like it gets to the login page and automatically logs him in to the instance rather than waiting for him to press the login button. How to achieve this?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@arshad199110 

can you explain your business requirement here?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

arshad199110
Tera Contributor

@Ankur Bawiskar : Thanks for your response.

Right now we have azure sso login for our instances. And we have set the session timeout for example 30 mins. By default, it will go to the servicenow logout page.  We need it as such it goes to the azure sso login page, where user can click login button to log in back.  For this, what I tried is like setting the servicenow homepage url itself as logout url.  With sso what happens is like, when session times out it goes to microsoft login page and automatically logs in the user without waiting for user to press login.   

 

I tried the other way around where user is logged into the instance and he manually logs out from his profile, which in turn returns user back to microsoft login page and waits until user clicks login. This basically kills the user session.

 

I am trying to achieve the same behavior with session timeout. For which the user session needs to be killed.

 

Or anyother alternate way you could suggest?