# Can Perspective Session Properties be Accessed from Project Scripts

**URL:** <https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition80\
**Created:** [October 9, 2020, 8:46pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554 "2020-10-09T20:46:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [October 9, 2020, 8:46pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554/1 "2020-10-09T20:46:01Z")

</div>

I’m wanting to setup a progress bar in a view to do what progress bars do.  
The screen actions the user generates calls a Project Script.  
I created a Session Custom Property that I wanted to use to drive the progress bar.  
The clients are run on tablets using the Perspective App and each session needs to have its own data for the a number of things, and this would be one of those. Hence using tags in not a good option (since they are common to all clients).  
Is there a way in the Project Script to access Session Custom Properties?  
Or, is there another solution that I’m just not seeing?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 9, 2020, 8:48pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554/2 "2020-10-09T20:48:26Z")

</div>

Pass the session as an argument to the function in your project script.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [October 9, 2020, 9:05pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554/3 "2020-10-09T21:05:27Z")

</div>

I had thought about that, but I didn’t find anything in my searching around that indicated how to utilize it in the Project script. I may be blind, or just ignorant (or both). I can pass the value in, but just don’t know how to use it.  
Can you point me down the right path?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 9, 2020, 9:22pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554/4 "2020-10-09T21:22:18Z")

</div>

Custom session props are accessible under `session.custom`:

```auto
	def doSomethingWithSession(session):
		print session.custom.myCustomProp

```

The regular props are under `session.props`.

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [October 9, 2020, 9:35pm UTC](https://forum.inductiveautomation.com/t/can-perspective-session-properties-be-accessed-from-project-scripts/39554/5 "2020-10-09T21:35:08Z")

</div>

I am blind! You said to pass the “session” in as an argument. I saw “session id”! ☹  
Thanks!
