Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Redirect to main login page after session timeout.

ah16
Mega Expert

Hi,

How can I redirect to main login page after session time out instead of showing the following pop-up?

find_real_file.png

Thanks,

Ashraf

4 REPLIES 4

Allen Andreas
Tera Patron

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!

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;
}

}

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!

Logout Redirect didn't worked. Any other suggestions?