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

**URL:** <https://forum.inductiveautomation.com/t/session-prop-change-script-has-no-system-security-logout/67818>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 20, 2022, 6:48am UTC](https://forum.inductiveautomation.com/t/session-prop-change-script-has-no-system-security-logout/67818 "2022-12-20T06:48:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [January 3, 2023, 9:00pm UTC](https://forum.inductiveautomation.com/t/session-prop-change-script-has-no-system-security-logout/67818/6 "2023-01-03T21:00:41Z")

</div>

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

You can get pageIds from [system.perspective.getSessionInfo()](https://docs.inductiveautomation.com/display/DOC81/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?

```auto
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)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/session-prop-change-script-has-no-system-security-logout/67818)._
