The CreatorCon Call for Content is officially open! Get started here.

about session timeouto

zx
Tera Contributor

hello everyone!

In the portal of ServiceNow, after the session expires, the page will automatically redirect to the login page. Now I want to customize a page in the portal that automatically redirects to my customized page after the portal session expires, without affecting the normal login page of the portal, and without affecting the login page that redirects to the internal form session after expiration. How should it be implemented?

2 REPLIES 2

GlideFather
Tera Patron

Hi @zx,

 

try to test with this property, it says after logout, but perhaps expired session is handled similarly:

GlideFather_0-1760954445442.png

property: ex.email.redirection.portal.sysId

https://yourinstance.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=8857aca40a0a3c7400d779dc3a16d9ae

 

Let me know how does it go

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


kaushal_snow
Mega Sage

@zx ,

 

You can redirect users to a custom portal page after session timeout (without affecting the internal login) by setting the system property glide.authenticate.failed_redirect to your desired URL so when the session expires they go to that page.........If you need this redirect only for the portal (and not the backend), you may also add logic in your portal’s login widget or theme (via client script) that checks for the /session_timeout.do URL and then redirects to your custom page.

Before implementing, note that redirecting may require review depending on your SSO or authentication setup, since some flows may enforce login through the default login pages.

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/