To perform logout, I call the API as follows
Code: Select all
#!/usr/bin/python3
import requests
import json
def delete_session(session_id):
headers = {
'X-RestSvcSessionId': session_id,
'Accept': 'application/json'
}
url = 'https://<ip address>/api/logonSessions'
res = requests.get(url, headers=headers, verify=False)
data = json.loads(res.text)
If this happens, is there a way to identify my session?
I feel like I can identify them by decrypting the session_id with base64, is this the right way to do it?
Thank you for reading.
If anyone knows more about this, I'd like to hear your answer.