# Perspective workstation don't run the script on session startup event

**URL:** <https://forum.inductiveautomation.com/t/perspective-workstation-dont-run-the-script-on-session-startup-event/112960>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 23, 2025, 9:00am UTC](https://forum.inductiveautomation.com/t/perspective-workstation-dont-run-the-script-on-session-startup-event/112960 "2025-12-23T09:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philin15](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@philin15](https://forum.inductiveautomation.com/u/philin15)\
**Post date:** [December 23, 2025, 9:00am UTC](https://forum.inductiveautomation.com/t/perspective-workstation-dont-run-the-script-on-session-startup-event/112960/1 "2025-12-23T09:00:15Z")

</div>

I want get the basic parameters from db when I start this session.And I add the scripts on session Startup event, it works well when opened through brower but it can’t work when opened through workstation. So what’s the difference between these two methods

---

<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:** [December 23, 2025, 1:13pm UTC](https://forum.inductiveautomation.com/t/perspective-workstation-dont-run-the-script-on-session-startup-event/112960/2 "2025-12-23T13:13:49Z")

</div>

We aren't mind readers. Show the errors/differences you get, and share the script.

---

<div class="post-metadata">

**Author:** ![Nol](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@Nol](https://forum.inductiveautomation.com/u/Nol)\
**Post date:** [December 23, 2025, 4:35pm UTC](https://forum.inductiveautomation.com/t/perspective-workstation-dont-run-the-script-on-session-startup-event/112960/3 "2025-12-23T16:35:07Z")

</div>

Likely cause would be a timeout or persistence where workstation is still keeping the session active and you're just closing and reopening it to do your test whereas the browser closes the connection when closed.

Go to the gateway status and perspective sessions and then close workstation and make sure the workstation session actually closes / disappears. Then try launching it again and see if that changes your situation.
