# Sending a request to the client application once the session expires

**URL:** <https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [November 10, 2021, 11:32am UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909 "2021-11-10T11:32:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimitar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dimitar/32/12759_2.png) [@dimitar](https://community.auth0.com/u/dimitar)\
**Post date:** [November 10, 2021, 11:32am UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/1 "2021-11-10T11:32:20Z")

</div>

I’d like to implement a mechanism so that a user, that’s logged into the client application via auth0, would get their application session destroyed once the auth0 session expires. Is there hook or rule or something of that sort that could be configured so I could send a request to the client application to destroy the user session? Or is this the wrong approach? Thanks in advance

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 10, 2021, 1:33pm UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/2 "2021-11-10T13:33:54Z")

</div>

Hey there!

What stack of Auth0 are you using?

---

<div class="post-metadata">

**Author:** ![dimitar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dimitar/32/12759_2.png) [@dimitar](https://community.auth0.com/u/dimitar)\
**Post date:** [November 10, 2021, 2:14pm UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/3 "2021-11-10T14:14:24Z")

</div>

Hi, so, sorry for misleading you. I actually have 2 client applications.

I’m using Rails with [devise](https://github.com/heartcombo/devise) and [omniauth-auth0](https://github.com/auth0/omniauth-auth0) on one of the client applications.

But the other one is a Flask client application which uses [flask-security-too](https://flask-security-too.readthedocs.io/en/stable/index.html) and I’d have to be able to log the user out from both applications once the session has expired.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 12, 2021, 8:12am UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/4 "2021-11-12T08:12:47Z")

</div>

Cool! I cannot speak for flask-security tool that you mentioned as it’s not developed by Auth0 but can I ask you to create a GitHub issue for that in our omniauth-auth0 repo so we can have that addressed directly with the repo maintainers? Once you have a link to it you can share it here so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![dimitar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dimitar/32/12759_2.png) [@dimitar](https://community.auth0.com/u/dimitar)\
**Post date:** [November 12, 2021, 12:32pm UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/5 "2021-11-12T12:32:21Z")

</div>

Here it is, hope it helps: [How do I logout a user from my client app once his auth0 session has expired? · Issue #137 · auth0/omniauth-auth0 · GitHub](https://github.com/auth0/omniauth-auth0/issues/137)

Thanks for your assistance

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 12, 2021, 12:33pm UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/6 "2021-11-12T12:33:52Z")

</div>

No worries! We’re here for you! I’m gonna ping them in a few minutes

---

<div class="post-metadata">

**Author:** ![dimitar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dimitar/32/12759_2.png) [@dimitar](https://community.auth0.com/u/dimitar)\
**Post date:** [November 16, 2021, 9:06am UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/7 "2021-11-16T09:06:19Z")

</div>

Hi, was just wondering if there’s any progress?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 16, 2021, 9:45am UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/8 "2021-11-16T09:45:51Z")

</div>

Hey there!

The team is aware of that but they have some other things they are currently working on and will get back to you

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 25, 2021, 12:36pm UTC](https://community.auth0.com/t/sending-a-request-to-the-client-application-once-the-session-expires/72909/9 "2021-11-25T12:36:47Z")

</div>


