# \[Feature-14345\]Login/Logout Events For Perspective

**URL:** <https://forum.inductiveautomation.com/t/feature-14345-login-logout-events-for-perspective/26216>\
**Category:** Ignition Early Access\
**Created:** [July 2, 2019, 9:44am UTC](https://forum.inductiveautomation.com/t/feature-14345-login-logout-events-for-perspective/26216 "2019-07-02T09:44:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [July 2, 2019, 9:44am UTC](https://forum.inductiveautomation.com/t/feature-14345-login-logout-events-for-perspective/26216/1 "2019-07-02T09:44:28Z")

</div>

Good Morning

Within Perspective, I’d like to run an event when a user logs in, I can see how to run an event when the session starts in Session events but the user info seems not to be available at that time. What am I missing?

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [July 2, 2019, 1:40pm UTC](https://forum.inductiveautomation.com/t/feature-14345-login-logout-events-for-perspective/26216/2 "2019-07-02T13:40:45Z")

</div>

I’ve got a workaround for now,  
a change event on a property in “session.props.auth.user”  
but Login and Logout Events might be useful.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 2, 2019, 2:21pm UTC](https://forum.inductiveautomation.com/t/feature-14345-login-logout-events-for-perspective/26216/3 "2019-07-02T14:21:02Z")

</div>

> [@Chris\_Taylor](#):
>
> but the user info seems not to be available at that time

Correct, this is because a Perspective Session "starts" long before a session even arrives at the login page, so there is no user information yet. A Perspective Session essentially starts the moment a browser queries the Gateway for a Perspective Session and is then provided a sessionId.

As for the Login Event, you've probably placed your code in the best available spot at this time. I'll open a feature request for the concept of Login/Logout Events, although since there is already a way to perform similar actions the feature will probably take some time before it's considered.
