Find and Terminate a User Session
Number of APIs: 2
This activity shows you how to find and terminate a user session.
The following operations are supported by the PingOne APIs:
- Read a user session
- Delete a user session
Prerequisites
- Create a user and initiate a user session in Configure a Simple Login.
Workflow order of operations
To configure a simple login with a username and password, you must complete the following tasks:
Make a
GET
request to/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions
to locate the current user session.Make a
DELETE
request to/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions/{{UserSessionID}}
to terminate the current user session.Make a
GET
request to/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions
to verify no sessions are found.
-
Step 2: Delete the user session DELETE {{apiPath}}/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions/{{UserSessionID}}
-
Step 3: Verify there are no active sessions GET {{apiPath}}/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions