# afterExpiration for Session class

**URL:** <https://community.parseplatform.org/t/afterexpiration-for-session-class/4702>\
**Category:** Cloud Code\
**Created:** [January 1, 2025, 12:20pm UTC](https://community.parseplatform.org/t/afterexpiration-for-session-class/4702 "2025-01-01T12:20:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![riccardoch](https://community.parseplatform.org/user_avatar/community.parseplatform.org/riccardoch/32/2011_2.png) [@riccardoch](https://community.parseplatform.org/u/riccardoch)\
**Post date:** [January 1, 2025, 12:20pm UTC](https://community.parseplatform.org/t/afterexpiration-for-session-class/4702/1 "2025-01-01T12:20:02Z")

</div>

Reading the documentation, it appears that the Session class only supports the beforeLogin and afterLogout triggers. Is there really no solution to execute operations after a session expires?

I was considering running a Job in the meantime, but I would need to execute it frequently to avoid missing the automatic database cleanup.

If no official solutions truly exist, I would suggest an afterExpiration trigger to perform tasks on sessions as soon as they expire. This would be very useful if sessions are also used to manage external services.

---

<div class="post-metadata">

**Author:** ![rgunindi](https://community.parseplatform.org/user_avatar/community.parseplatform.org/rgunindi/32/1553_2.png) [@rgunindi](https://community.parseplatform.org/u/rgunindi)\
**Post date:** [January 6, 2025, 7:37pm UTC](https://community.parseplatform.org/t/afterexpiration-for-session-class/4702/2 "2025-01-06T19:37:36Z")

</div>

Hei @riccardoch you can try to open issue on GitHub with arguments
