# Reset the Chatbot automatically when the User leaves the page

**URL:** <https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295>\
**Category:** General Questions\
**Tags:** ai-chatbot\
**Created:** [March 23, 2026, 1:02am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295 "2026-03-23T01:02:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user16632](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@user16632](https://community.elfsight.com/u/user16632)\
**Post date:** [March 23, 2026, 1:02am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/1 "2026-03-23T01:02:25Z")

</div>

Currently new users see an open chat that exists prior to the 10 minute (but it seems longer to me!!!) no-activity time out period. I think the app should be reset when the user leaves the page the Chat app is on.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 23, 2026, 8:27am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/2 "2026-03-23T08:27:53Z")

</div>

Hi there, @user16632 👋

Thank you so much for the feedback!

You’d like the automatically reset the conversation and close the chat window if the user left the page, ami I right?

---

<div class="post-metadata">

**Author:** ![user16632](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@user16632](https://community.elfsight.com/u/user16632)\
**Post date:** [March 23, 2026, 8:52am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/3 "2026-03-23T08:52:49Z")

</div>

Yes thanks Max, topic can be closed - customer HAPPY.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 23, 2026, 9:09am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/5 "2026-03-23T09:09:33Z")

</div>

I’ve just noticed you discussed this issue in the chat with my colleague Daria. Do I get it right that you’ve managed to resolve it?

---

<div class="post-metadata">

**Author:** ![user16632](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@user16632](https://community.elfsight.com/u/user16632)\
**Post date:** [March 23, 2026, 9:24am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/6 "2026-03-23T09:24:20Z")

</div>

I haven’t Max, and great to see you all over everything this morning.

So, I’m a bit confused about how the app actually works.  
As I said I have it deployed in my webapp on the Help page, and I’m seeing that any user of the app sees anyone’s chat with the app.  
I also, as a test, installed the app on a webpage outside of the webapp, and still saw the same user chats.

So, what triggers a new session?

KJ

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 23, 2026, 9:58am UTC](https://community.elfsight.com/t/reset-the-chatbot-automatically-when-the-user-leaves-the-page/150295/7 "2026-03-23T09:58:40Z")

</div>

I see that my colelague Daria has already checked your app and couldn’t replicate the issue (the same for me).

You’ve shared a credential from your account with us. Could you please try to send a message from a different account and we’ll check if this session is displayed in the account you’ve shared with us?
