How to modify the walk_up_keep_alive value to keep the session not timing out for Walkup User

Urvershi Anand
Tera Contributor

Need help to modify the walk_up_keep_alive value to keep the session not timing out for Walkup User

 

Description - If anyone have implemented Walkup Experience, can share the details how to keep session not timing out with the default session timeout.

 

Thanks in Advance.

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Urvershi Anand,

 

For similar kind of issue, please refer to the below steps:

To prevent session timeouts for Walk-up Users in ServiceNow, you can modify the walk_up_keep_alive value, which is a utility function that keeps the session alive by making HTTP requestsThis value is used by the on-site widgets to maintain a persistent session. You can adjust the interval (the time between each HTTP request) to prevent the session from timing out. 
 
  1. 1. Understanding walk_up_keep_alive:
    • The walk_up_keep_alive function is part of the Walk-up Experience and is used to keep the session alive for "walkup user" accounts. 
       
    • It works by making regular HTTP requests to a specific endpoint (/walk_up_keep_alive). 
       
    • This prevents the session from timing out due to inactivity. 
       
  2. 2. Modifying the Interval:
    • The interval (the time between each HTTP request) can be adjusted to control how frequently the session is "kept alive". 
       
    • You can modify the interval by updating the walk_up_keep_alive function or by modifying the widget that uses it. 
       
  3. 3. Steps to Implement:
    • Locate the walk_up_keep_alive function: You can find this function within the widget's code, typically under the walkupkeepalive provider. 
       
    • Adjust the interval: Modify the interval parameter to control how frequently the HTTP request is made. A shorter interval will keep the session alive more frequently, while a longer interval may lead to the session timing out. 
       
    • Consider the "Remember Me" checkbox: In some cases, the "Remember Me" checkbox on the login page may need to be enabled for session persistence. 
       
    • Test the changes: After making the changes, test the Walk-up Experience to ensure that the session remains active for the desired duration. 
       
  4. 4. Alternative Approaches:
    • Modify UI properties: You can also adjust UI properties related to session timeouts to prevent the "walkup user" account from logging out. 
       
    • Enable "Remember Me" checkbox: If the "Remember Me" checkbox is disabled, users may need to log back in after a period of inactivity. 

    or refer to the below link:
    https://www.servicenow.com/community/itsm-forum/walk-up-experience-how-to-keep-quot-walkup-user-quot...

     

    If it is helpful, please mark it as helpful and accept the correct solution, By refer to this solution it will helpful to them.

     

    Thanks & Regards,

    Abbas Shaik