# Question about cookies maybe

**URL:** <https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 9, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844 "2023-06-09T15:55:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [June 9, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844/1 "2023-06-09T15:55:28Z")

</div>

When I go to a website and open or close menus, some sites remember what I left open or closed. I think it does that through cookies.

Is that something I can implement in perspective? At least one user mentioned that a desire to have some menus closed, while I know I like having all of them open so I can more quickly click where I want to navigate to.

So I wonder how to make the page remember our preferences.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 9, 2023, 4:15pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844/2 "2023-06-09T16:15:57Z")

</div>

I use my database for anything regarding persistent data for users and do so for stuff like this like allowing a user to set what their "home" view is.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [June 9, 2023, 5:06pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844/3 "2023-06-09T17:06:25Z")

</div>

What is the implementation you use?  
Do they login or is it invisible?

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [June 9, 2023, 5:50pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844/4 "2023-06-09T17:50:38Z")

</div>

Do your users have to login?

If so tie it `session.props.auth.user.userName`. if not perhaps try using the device identifier `session.props.device.identifier`

Maybe consider using a session started script to run a query that pulls in the users/device saved settings and write them to some property like `session.custom.savedSettings`

Then check against that custom property to do whatever it is you wish to do.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [June 9, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/question-about-cookies-maybe/74844/5 "2023-06-09T19:51:51Z")

</div>

Right now, there is no login.  
Been thinking about it.
