# Perspective Project Messaging acccross open Tabs

**URL:** <https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 8, 2023, 3:03pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410 "2023-05-08T15:03:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![daneichelberger](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@daneichelberger](https://forum.inductiveautomation.com/u/daneichelberger)\
**Post date:** [May 8, 2023, 3:03pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/1 "2023-05-08T15:03:29Z")

</div>

I have a Perspective project that I started using Messaging to populate text on a title bar. The message and error handling scopes are both set to page . I noticed that when I have 2 browser windows open, the title bar text in both browser window changes when a message is fired in one window.

I am using:  
Chrome: Version 113.0.5672.64 (Official Build) (64-bit)  
Ignition 8.1.14

Is this normal or is there a way to prevent the cross talk from browser to browser?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 8, 2023, 3:32pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/2 "2023-05-08T15:32:23Z")

</div>

Show your code. But note that this is expected/intended for session-scoped messages. ~~You probably need to switch to page-scoped messages.~~

Hmm. You **are** using page scope. Or _think_ you are. You might want to add some logging to your event scripts.

---

<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 8, 2023, 3:35pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/3 "2023-05-08T15:35:14Z")

</div>

Without looking at the code which invokes the `sendMessage` call and the accompanying configurations on the listeners we won't be able to hep much.

---

<div class="post-metadata">

**Author:** ![daneichelberger](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@daneichelberger](https://forum.inductiveautomation.com/u/daneichelberger)\
**Post date:** [May 8, 2023, 4:16pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/4 "2023-05-08T16:16:20Z")

</div>

I hope this helps.

Message Generation:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/1/3168532063b0161ebd4d776d712ff75aa432c0a0.png)

Message Handler:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/2/f2f1aabdd876a70289bb6050446f6a743f246ae5.png)

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [May 8, 2023, 4:22pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/5 "2023-05-08T16:22:34Z")

</div>

On the message handler I notice you are setting `self.session.custom.appbarText` is there a possibility this is what is causing the text to change on both windows in your session?

---

<div class="post-metadata">

**Author:** ![daneichelberger](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@daneichelberger](https://forum.inductiveautomation.com/u/daneichelberger)\
**Post date:** [May 8, 2023, 4:23pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/6 "2023-05-08T16:23:59Z")

</div>

I think you found it. So both browsers are using the same session data

---

<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 8, 2023, 4:29pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/7 "2023-05-08T16:29:07Z")

</div>

Yes, because they are both the same session; all pages open within a singular browser register as belonging to the same session. Pages opened in different browsers will register as a different session.

---

<div class="post-metadata">

**Author:** ![daneichelberger](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@daneichelberger](https://forum.inductiveautomation.com/u/daneichelberger)\
**Post date:** [May 8, 2023, 4:30pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/8 "2023-05-08T16:30:53Z")

</div>

I fixed it by writing directly to the text field. Its good now.

The odd thing is is that the pages were in 2 separate browsers that I opened independently.

---

<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 8, 2023, 4:35pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/9 "2023-05-08T16:35:59Z")

</div>

But were they both Chrome, or both Firefox?

---

<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 8, 2023, 4:37pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/10 "2023-05-08T16:37:50Z")

</div>

The session management and cookies and all that stuff are all stored at the application level, so all browsers you open for Chrome all share the same data on the back-end of the application. It doesn't matter if they're separate windows - they're the same application. Incognito/private browsers have their own memory in use and so register as different sessions.

---

<div class="post-metadata">

**Author:** ![daneichelberger](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@daneichelberger](https://forum.inductiveautomation.com/u/daneichelberger)\
**Post date:** [May 8, 2023, 5:14pm UTC](https://forum.inductiveautomation.com/t/perspective-project-messaging-acccross-open-tabs/73410/11 "2023-05-08T17:14:18Z")

</div>

They were both Chrome.  
What you said about sessions makes sense. Looks like I am good to go. Thanks for your help.
