# How to close session for metered connection?

**URL:** <https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658>\
**Category:** Dashboard\
**Created:** [24 April 2021 14:17 UTC](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658 "2021-04-24T14:17:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taisau](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/taisau/32/4605_2.png) [@taisau](https://discourse.nodered.org/u/taisau)\
**Post date:** [24 April 2021 14:17 UTC](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658/1 "2021-04-24T14:17:17Z")

</div>

Is it possible to timeout or force close a dashboard session? Programmatically triggering a "connection lost" message sounds ideal. My use case is that sometimes I'll forget and leave the tab open streaming data via a metered phone plan.  
sessionExpiryTime in settings.js perhaps? But I would like to be able to turn the timeout back to 1 week when not on the metered connection.

---

<div class="post-metadata">

**Author:** ![taisau](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/taisau/32/4605_2.png) [@taisau](https://discourse.nodered.org/u/taisau)\
**Post date:** [25 April 2021 18:17 UTC](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658/2 "2021-04-25T18:17:00Z")

</div>

Problem solved and I can file this under better to treat the problem than the symptom:  
I had an infinite loop on a switch that while working as fast as it could, ate gigabytes of mobile data!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 May 2021 18:17 UTC](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658/3 "2021-05-09T18:17:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
