# Get access to session.custom from parent project

**URL:** <https://forum.inductiveautomation.com/t/get-access-to-session-custom-from-parent-project/84744>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [January 24, 2024, 11:32pm UTC](https://forum.inductiveautomation.com/t/get-access-to-session-custom-from-parent-project/84744 "2024-01-24T23:32:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yousef\_Ali](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Ali](https://forum.inductiveautomation.com/u/Yousef_Ali)\
**Post date:** [January 24, 2024, 11:32pm UTC](https://forum.inductiveautomation.com/t/get-access-to-session-custom-from-parent-project/84744/1 "2024-01-24T23:32:17Z")

</div>

In my parent project, there's a view with button which will trigger a script which should read value from child project on this path `(session.custom.projectProvider)` .  
When use this path in my parent project i got error `global name 'session' is not defined` in gateway setting i defined the parent project as gateway script project .

`tagProviders = session.custom.projectProvider`

---

<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:** [January 24, 2024, 11:56pm UTC](https://forum.inductiveautomation.com/t/get-access-to-session-custom-from-parent-project/84744/2 "2024-01-24T23:56:35Z")

</div>

That means you aren't trying to access it from within a view, as a parent project's views will only ever existing in a live project in their inherited forms in the leaf project.

Show _ **where** _ you are trying to use this and we may be able to help. Or at least, explain why you can't.
