# \[IGN-2249\] Reset Page View on Logout

**URL:** <https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 26, 2023, 1:21am UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618 "2023-09-26T01:21:44Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [September 26, 2023, 1:21am UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/1 "2023-09-26T01:21:44Z")

</div>

I discovered that when I change users, during the same session, the second user will land on the last viewed page of the previous user, even when not authorized to view that URL.

I attempted to add the Session ID and Page ID to the `system.perspective.logout()` function, but it does not do what I had hoped.

Do I need to put the `home` path in there somewhere?

---

<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:** [October 19, 2023, 6:53pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/2 "2023-10-19T18:53:04Z")

</div>

Since I haven't had any replies yet, thought I would bump this.

How do I make a page/view the first page any user sees when they first login, and not the last page that was visited?

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [October 19, 2023, 9:00pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/3 "2023-10-19T21:00:11Z")

</div>

You can probably put a change script on the user timestamp property that calls `system.perspective.navigate()` to go to the desired page. Haven't tested this though.

EDIT: on a quick test, didn't seem to work. It briefly flashed to the navigation target before jumping back to the last visited page.

---

<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:** [October 19, 2023, 10:13pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/4 "2023-10-19T22:13:29Z")

</div>

Well, it was worth the try!

Someone once said that "discovery requires experimentation".

---

<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 20, 2023, 4:43pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/5 "2023-10-20T16:43:14Z")

</div>

As you've discovered, there's not a great way to do this. We do have an open feature to improve this area, where we would introduce an Event which occurs whenever the authentication of a Session changes. Such an event would allow for scripting at that time, which would allow for navigation to the home page whenever a user logs in.

---

<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 6, 2024, 4:55pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/6 "2024-05-06T16:55:41Z")

</div>

Any update on this feature?

---

<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:** [May 6, 2024, 6:59pm UTC](https://forum.inductiveautomation.com/t/ign-2249-reset-page-view-on-logout/79618/7 "2024-05-06T18:59:48Z")

</div>

It was scrubbed and deemed Ready for Development, but no state change beyond that.
