@ShivaHugar : No i have not got any reply for this as of yesterday. We have backed out from this requirement as the approach was not working. But now i found Priyanka replied on this thread , need to try .
Add pyPortalHeader Section into in your local ruleset, then Embedded the pxSessionTimer Section into the Dyanmic Layout 1, I have tickmarked, pxSessionTimer into the section for visible.
Pass the required parameters into the pxSessionTimer and I have highlighted parameters 2 min and 1 min.
Note: Try to Open pyPortalHeader from Portal Rule → Inside Portal Open Harness Rule then from that Open the pyPortalHeader Section
This is working fine for me and my community edition-based by login → SSO Login.(Pega Infinity '24.1)
I have changed from DeveloperPortal to pyCaseManager7 Portal
I have logged in by SSO, It will be logout session automatically after given time.
Note: I haven’t customize anything, Just I have SaveAs a pyPortalHeader Section into in my local ruleset, then Embedded the pxSessionTimer Section into the Dynamic layout.
@Manojkumar_ J I used this code snippet but this didn’t work for us. It is not redirecting to login page, instead it is giving this screen in the popup.
For getting the session timer pop up we need to add the pxSessionTimer section in portal header and in section configurations parameters tab we need to pass Timeout time and warning time.
Ex - Timeout time - 3 Warning time - 2 . The warning window comes after 2 mins idle time.
I hope all these settings are in place. If not please verify and pxSessionTimer is not customized.
Are you testing this session timer with end user access group ? Once confirm the functionality with developer operator.
I am able to identify the root cause and fix the issue.
Technically when such session timers are configured our application MUST not make any AJAX call behind the scene’s which will cause the timer to get reset. Session timers will work when there are no such AJAX calls to server during user idle time then this will work.