# Unable to terminate the operator who gets the session error(The current session is blocked, as the maximum number of active sessions for the current operator has been reached.)

**URL:** <https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834>\
**Category:** General\
**Tags:** system-administration, pega-platform, security\
**Created:** [January 9, 2025, 4:30am UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834 "2025-01-09T04:30:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BharathKambavalasa](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BharathKambavalasa](https://forums.pega.com/u/BharathKambavalasa)\
**Post date:** [January 9, 2025, 4:30am UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/1 "2025-01-09T04:30:16Z")

</div>

Hello Everyone,

In our organization, we have a limitation to let users login only once and even they login once, they are getting the titled error.

In earlier versions, if they do the clear cache of the browsers or by using the pega.getSystemOperationsProvider().getPresenceSessionManagementAPI().clearPresenceSessions(operatorid) or through Requestor management we could able to clear the active session.

But, after the recent upgrade to pega infinity, the number of users facing the issue became high and also unable to terminate in backend as well.

The above function is not working in the latest version, even if we clear the cache is also not helping, even when try to terminate the operator from admin studio is not helping.

Is there any other way to solve this?

Many users are facing the issue and it is taking a lot of time to let them login again.

Have also gone through the below link which didn’t help me

> **[Operator Presence troubleshooting FAQs | Support Center](https://support.pega.com/support-doc/operator-presence-troubleshooting-faqs)**
>
> Applies to Pega Platform 7.2-8.5   This article provides answers to frequently asked questions about Operator Presence. This article also describes the changes implemented in Pega 8.5 and later versions. Introduction Answers to Frequently Asked...

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![Sairohith](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sairohith/32/23362_2.png) [@Sairohith](https://forums.pega.com/u/Sairohith)\
**Post date:** [January 9, 2025, 2:30pm UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/2 "2025-01-09T14:30:53Z")

</div>

@BharathKambavalasayou can try the following steps. First, check the Dynamic System Setting (DSS) `presence/maxActiveSessionsPerOperator` and consider increasing it from the default value of `1`. If the error persists, clear the sessions directly from the database by deleting the operator entries in the `pr_operators` and `pr_data_admin` tables, but take a database backup before making changes. If using OAuth2 or SSO, ensure the token expiration and refresh mechanisms are functioning properly. Try logging in from a different browser or in incognito mode to rule out cookie issues. You can also temporarily increase the session timeout to reduce frequent disconnections. Since the issue arose after an upgrade, check with Pega Support for any available hotfixes related to session management. If none of these steps work, escalate the issue with Pega Support

---

<div class="post-metadata">

**Author:** ![BharathKambavalasa](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BharathKambavalasa](https://forums.pega.com/u/BharathKambavalasa)\
**Post date:** [January 11, 2025, 12:26pm UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/3 "2025-01-11T12:26:51Z")

</div>

@Sairohith Thank you for your revert.

I don’t see the above DSS in my rules. Does the operator id not get deleted if we delete the entry from pr\_operators and pr\_data\_admin table?.

Also we use OAuth2/SSO to login and we don’t have access to incognito mode. We are unable to login from any other browser until the login gets expired automatically.

---

<div class="post-metadata">

**Author:** ![Sairohith](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sairohith/32/23362_2.png) [@Sairohith](https://forums.pega.com/u/Sairohith)\
**Post date:** [January 11, 2025, 5:49pm UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/4 "2025-01-11T17:49:26Z")

</div>

@BharathKambavalasaIt seems like the DSS (`presence/maxActiveSessionsPerOperator`) is not available in your system, and you are using OAuth2/SSO, which limits direct control over sessions. Deleting the entries from the `pr_operators` and `pr_data_admin` tables will not delete the operator but can clear session-related data temporarily

Also if you’re unable to access incognito mode and the issue persists across browsers until the login expires automatically, it may be related to stale tokens or session persistence settings in the OAuth2/SSO configuration

If the issue still persists after these then you can open a Pega SR to any hotfix and other suggestions. thanks

---

<div class="post-metadata">

**Author:** ![BharathKambavalasa](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BharathKambavalasa](https://forums.pega.com/u/BharathKambavalasa)\
**Post date:** [January 11, 2025, 5:53pm UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/5 "2025-01-11T17:53:05Z")

</div>

@Sairohith I’ll try to delete the entry in the given tables and check if its working.

Thanks much for your revert

---

<div class="post-metadata">

**Author:** ![BharathKambavalasa](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BharathKambavalasa](https://forums.pega.com/u/BharathKambavalasa)\
**Post date:** [January 23, 2025, 10:09am UTC](https://forums.pega.com/t/unable-to-terminate-the-operator-who-gets-the-session-error-the-current-session-is-blocked-as-the-maximum-number-of-active-sessions-for-the-current-operator-has-been-reached/8834/6 "2025-01-23T10:09:47Z")

</div>

If we delete the instance of the operator from Data-OperatorPresence-Session will allow user to login.
