# Session properties shared by all pages from the same client

**URL:** <https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 16, 2021, 8:08pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703 "2021-04-16T20:08:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 16, 2021, 8:08pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/1 "2021-04-16T20:08:34Z")

</div>

session properties data are shared by multiple pages launched on the same client.  
(we can compare in the vision “world” : the tag client for multiple desktop from the same vision client are shared)

Is there a way to have some session data not shared by all pages of the same session ?  
My idea was to use **session.custom.myprop[pageId]**  
But I have to bind session custom prop data. Can we make some kind of indirect binding with session custom prop ?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 21, 2021, 4:43pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/2 "2021-04-21T16:43:08Z")

</div>

another way could be a settings in the project to force Ignition to create a new session instead of keeping the same session when multiple tab or client broswer are launched on the same machine ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2021, 4:56pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/3 "2021-04-21T16:56:35Z")

</div>

I don’t know that this is encouraged (we don’t allow `page.custom`, for whatever reason) but could you just put your own info into a new page prop? `page.props.$yourObjectName` should be fine to write to.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 21, 2021, 5:21pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/4 "2021-04-21T17:21:21Z")

</div>

👍 Yes, thanks a lot Paul. That’s exactly what I need. What an hidden gem ! 💎

Would be perfect in the future if they are a property editor for a **page.custom** …and a way to set an initial values for such page properties.

As a workaround, the initial value for “page custom props” can be set in some onStartup event.

---

<div class="post-metadata">

**Author:** ![stefan.marcin74](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@stefan.marcin74](https://forum.inductiveautomation.com/u/stefan.marcin74)\
**Post date:** [January 24, 2022, 8:17pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/5 "2022-01-24T20:17:50Z")

</div>

Hello, can you further explain what to set to be able to open multiple tabs in browser but each tab has separate session ? Thanks.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 24, 2022, 8:46pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/6 "2022-01-24T20:46:18Z")

</div>

Each tab opened in the same browser share the same session and then the same session properties.  
If you need some data specific to each tab you need to add them to page.props properties  
This kind of property has no editor in the designer but you can create and use them in binding and script…

---

<div class="post-metadata">

**Author:** ![stefan.marcin74](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@stefan.marcin74](https://forum.inductiveautomation.com/u/stefan.marcin74)\
**Post date:** [January 25, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/7 "2022-01-25T15:05:39Z")

</div>

could you explain more deeply ? So e.g. i have a page and I add custom property here ?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/b/db251689202ed9b532606528f1435051b9f05a1c.png)

and then when I edit it from one tab it will not be reflected in other tab ?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 25, 2022, 3:36pm UTC](https://forum.inductiveautomation.com/t/session-properties-shared-by-all-pages-from-the-same-client/45703/8 "2022-01-25T15:36:34Z")

</div>

It’s just a workaround,  
In the onStartup script of your view, add someting like:

```auto
self.page.props.myProp1 = "myValue"

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d59c6d4d9015af0d5794cbebc60d368f14c5ba2e.png)

And you can use the value in a binding

```auto
page.props.myProp1

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/c/dc0fa47802cc108cd82074fd25d780f8727cb413.png)
