Session prop change script has no system.security.logout()?

Seems like a pageId is required for the logout function...

You can get pageIds from system.perspective.getSessionInfo(). You might be able to get what you want if you iterate over those and log the user out for each page. Perhaps something similar to this?

sessionId = self.props.id
pageIds = []
	
#Get page IDs
for session in system.perspective.getSessionInfo():
	if session['id'] == sessionId:
		pageIds = session['pageIds']
		break
#Logout each page
for pageId in pageIds:
	system.perspective.logout(sessionId, pageId)
1 Like