Last activity: 1 Jun 2023 20:13 EDT
SSO session timeout not working.
We have a requirement that if any user is idle for 15 min, the session should be terminated. I have tried using sessiontimer, but it’s not working. Can someone help me on this? Currently we are using Pega 8.6.3 version.iam getting empty dialog box with close button.if I press f12 In console,I can see 403 forbidden.
ClassName: "Data-Portal" and Can you Saveas "pyPortalHeader" rule into your rule set.
and Add "pxSessionTimer" into Dynamic layout, it will for you.
I added the pxSessionTimer in Dyamiclayout and Right side and I have highlight in Yellow colour.
I hope this will help you,
Updated: 26 May 2023 2:14 EDT
@Bhumireddy Do we need to save as pxsessiontimer into our ruleset? Can you please let me know which version of Pega are you using? Iam facing issue with only user portal, it’s working fine for administrator access group & not working for other user access groups (user portals).For user portal, it’s displaying empty dialog box with x button(not displaying timer)
I sent the screenshot refence from my Personal Edition Pega Platform 8.6.0.
I think it will work for you, Give a try and see.
@Bhumireddy , Iam facing issue with only user portal, it’s working fine for administrator access group & not working for other user access groups (user portals).For user portal, it’s displaying empty dialog box with x button(not displaying timer).if I press f12, in console it’s displaying 403 forbidden error
Updated: 26 May 2023 22:31 EDT
Open User Access Group-- from that --> Open Portal --- from that --> Open the Harness and then Open the Section inside Dynamic Layout add Embedded Section and Include pxSessionTimer Or Else you can use OOTB Rules. As mentioned below.
ClassName: "Data-Portal" and can you save the "pyCWPortalHeader" rule into your rule set?
and add "pxSessionTimer" into the dynamic layout, it will work for you.
I added the "pxSessionTimer" to the dynamic layout and right side, and I have highlighted it in yellow.
This time definitely it will work for you. I am sure on this.
Please go through above article
@Bhumireddy , Thank you,Its working fine now. But once the timer is getting displayed, if user didnt take any action, its displaying "Their was an error, please contact system administrator" instead of displaying login screen. can you please suggest?
Updated: 26 May 2023 22:53 EDT
If you do not click OK, it will automatically log out the session and redirect you to the login screen.
I am not sure why your screen is not able to redirect to the login screen.
If it is not able to redirect to the login screen. Then you can manually enter the login URL in the browser.
Or Else you can mention the time out:--> under access group --> Advanced Tab --> Access Control --> Authentication timeout. After time out it will not show any Pop Up, it will ask the Enter the User Name and Password.
@Bhumireddy ,Thanks for responding…For SSO session timeout as per my requirement , it should display timer & then it should redirect to login screen.I have tried the pxsessiontimer approach that you have mentioned yesterday, it’s working fine for administrator access group but in case of any user portal, it’s displaying timer, but if user doesn’t take any action it should redirect to login screen. That’s not happening.it’s displaying error screen.it will be a blocker for user. Thanks
Can you check if you have missed any point from the below URL
@Anoop Krishna , iam using directly pxsessiontimer.I have included script in pxsessiontimer & tried to launch user portal.the portal itself not loading…its displaying emptyscreen
@Anoop Krishna , I didn’t include any script. I simply using pxsessiontimer only.can you please share the logoff script?
@veeram16826629 okay, in the URL which I have shared above, a log off script is included. You need to copy that and paste into your pxSessionTimer which you have specialised to your app level. This is for log off.
You were saying pop was showing to the user but log off(redirecting to login screen is not working) right?
@Anoop Krishna ,yes.do I need to save as showlogofftimer activity into my rsv? I tried to include the script which you have mentioned after launching the user portal, the screen is blank.
@veeram16826629 I think that's not required. Can you check if you are able to find RedirectOnTimeout when rule?
@Anoop Krishna sure.Will check & let you know.thanks
I tried pxsessiontimer directly…iam getting commiterror… & also can someone please let me know how does ‘x’ button works in session timer?
@Bhumireddy if I click on x on modal dialogue it displays login screen.can you suggest what changes do we need to do for x to stays in same screen