# \[FEATURE-2495\] Logout and back to home page

**URL:** <https://forum.inductiveautomation.com/t/feature-2495-logout-and-back-to-home-page/47177>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 27, 2021, 6:27am UTC](https://forum.inductiveautomation.com/t/feature-2495-logout-and-back-to-home-page/47177 "2021-05-27T06:27:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [May 27, 2021, 6:27am UTC](https://forum.inductiveautomation.com/t/feature-2495-logout-and-back-to-home-page/47177/1 "2021-05-27T06:27:28Z")

</div>

Hello,  
I want to create a button with a script. Click it to log out and return to home page, the only page which you can log in. Here is the script. But it doesn’t work properly, user will log out, and stay on the previous page. I got the pageId from _self.page.props.pageId_ on my web browser.

```
system.perspective.logout(pageId='347d393c')

```

This should be a simple feature, I must have missed something?

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [May 27, 2021, 12:33pm UTC](https://forum.inductiveautomation.com/t/feature-2495-logout-and-back-to-home-page/47177/2 "2021-05-27T12:33:55Z")

</div>

Unfortunately, this is not yet possible, though we have a feature ticket in our internal backlog which would provide this capability.

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [May 3, 2024, 6:49pm UTC](https://forum.inductiveautomation.com/t/feature-2495-logout-and-back-to-home-page/47177/3 "2024-05-03T18:49:23Z")

</div>

Do we have this feature yet?
