# Define default session properties for new sessions

**URL:** <https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858>\
**Category:** Ignition\
**Created:** [October 31, 2022, 5:20am UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858 "2022-10-31T05:20:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [October 31, 2022, 5:20am UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858/1 "2022-10-31T05:20:37Z")

</div>

I note that if I change a session property on a particular PC, the next time that PC loads up a new session, it will remember the session properties and use them again next time.

For example, on a new PC, the session will open in light mode. I can change it to dark mode, and the next time a session is opened on that PC, it will open in dark mode.

How can I make dark mode the default for all new sessions?

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [October 31, 2022, 3:29pm UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858/2 "2022-10-31T15:29:23Z")

</div>

Just to clarify so I don't assume.

Are you talking about the Designer, Vision, Perspective?

---

<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:** [October 31, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858/3 "2022-10-31T16:26:40Z")

</div>

You can put an expression binding on `session.props.theme` that just returns `dark` to ensure it's always `dark` by default.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [November 1, 2022, 11:39pm UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858/4 "2022-11-01T23:39:30Z")

</div>

That would force it to be dark all the time though, correct?

The theme was just one example - there are about 5-10 session properties that I set up with each new device, but it'd be much easier if I could just set something at the gateway level that says "these are the defaults that each new device uses as a starting point". If on one device the users want a different option, no problem, they can select that - but it just means that anyone who spins up a session on any device will get a familiar environment to start, and if they want to change it, they can.

---

<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:** [November 2, 2022, 3:56pm UTC](https://forum.inductiveautomation.com/t/define-default-session-properties-for-new-sessions/65858/5 "2022-11-02T15:56:45Z")

</div>

An expression binding with a static value in it will only execute once, on startup.

I would probably contact support to explain what's going on in more detail, though; I don't think this is expected behavior.
