Redirect to main login page after session timeout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2020 05:35 AM
Hi,
How can I redirect to main login page after session time out instead of showing the following pop-up?
Thanks,
Ashraf
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2020 05:56 AM
Hi,
Please see my post here and let me know if you're successful: https://community.servicenow.com/community?id=community_question&sys_id=0f394251dbeb370414d6fb243996...
That is...if you're using SSO like ADFS.
Otherwise, please go to Installation Exists > Logout Redirect in your left-hand navigation.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2020 06:07 AM
Thanks Allen. In fact, I was looking at the same thread. We are not using SSO and I see the logout redirect script is inactive.
So, just change script URL to main login page? Where we can modify session timeout value to test this out?
gs.include("PrototypeServer");
var LogoutRedirect = Class.create();
LogoutRedirect.prototype = {
process : function() {
var gotoURL = "http://www.google.com";
response.sendRedirect("logout_redirect.do?sysparm_url=" + gotoURL);
return true;
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2020 06:13 AM
Hi,
Yes, you'd just change the URL.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2020 11:37 AM
Logout Redirect didn't worked. Any other suggestions?