# Limit Perspective Session to single browser tab

**URL:** <https://forum.inductiveautomation.com/t/limit-perspective-session-to-single-browser-tab/39663>\
**Category:** Ignition\
**Created:** [October 14, 2020, 3:09pm UTC](https://forum.inductiveautomation.com/t/limit-perspective-session-to-single-browser-tab/39663 "2020-10-14T15:09:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 14, 2020, 3:51pm UTC](https://forum.inductiveautomation.com/t/limit-perspective-session-to-single-browser-tab/39663/2 "2020-10-14T15:51:23Z")

</div>

You can’t prevent them from opening a new tab to the project, but you can use the Page OnStartup Event to immediately send the new tab to a non-op page. Something like this in the Page OnStartup Event:

```auto
for session in system.perspective.getSessionInfo(projectFilter="MyProject"):
    if session.id == page.session.props.id:
        if session.activePages > 1:
            system.perspective.closePage(pageId=page.props.pageId)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/limit-perspective-session-to-single-browser-tab/39663)._
