# Browser disconnect when other user (session) connects - why?

**URL:** <https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154>\
**Category:** Web\
**Created:** [March 5, 2016, 6:49pm UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154 "2016-03-05T18:49:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Pastor1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Mark\_Pastor1](https://forum.xojo.com/u/Mark_Pastor1)\
**Post date:** [March 5, 2016, 6:49pm UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/1 "2016-03-05T18:49:53Z")

</div>

This happens with xojo.cloud and my web app with xojo 2016r4.1. This does NOT happen with one of my other apps - same conditions. What would cause one app session to be forced to disconnect when another session of the same app is opened?

---

<div class="post-metadata">

**Author:** ![Mark\_Pastor1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Mark\_Pastor1](https://forum.xojo.com/u/Mark_Pastor1)\
**Post date:** [March 5, 2016, 7:58pm UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/2 "2016-03-05T19:58:13Z")

</div>

> [@251288:@Mark Pastor](#):
>
> xojo 2016r4.1

I meant to say xojo 2015r4.1.

More info: I commented out the HandleURL event, and the problem still shows. So may not be related to anything in the HandleURL routine.

---

<div class="post-metadata">

**Author:** ![Mark\_Pastor1](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Mark\_Pastor1](https://forum.xojo.com/u/Mark_Pastor1)\
**Post date:** [March 29, 2016, 9:36pm UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/3 "2016-03-29T21:36:07Z")

</div>

I solved this problem a couple weeks ago - but just getting the time to see if someone can explain the solution.  
The problem was caused by me accessing the SpecialFolder.Resources location. Without any better insights, I figured I could use that location to store a timezone database I use, and every time a new session for my app was started a file in this location was read to get the timezone database info.

For whatever reason - accessing that file killed the other session that was active.

Can someone explain that? Is there something special about the Resources folder?

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_d/32/266_2.png) [@Mike\_D](https://forum.xojo.com/u/Mike_D)\
**Post date:** [March 30, 2016, 1:25am UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/4 "2016-03-30T01:25:26Z")

</div>

The Resources folder of an app is generally read-only. Are you trying to write to it? It sounds to me like the first Session/thread is able to open it, but the second one opens it and this somehow causes the first one to crash. Check Console.log an see if there are any error messages. Is this on OS X?

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [March 30, 2016, 10:02am UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/5 "2016-03-30T10:02:59Z")

</div>

> [@256276:@Michael Diehr](#):
>
> The Resources folder of an app is generally read-only. Are you trying to write to it? It sounds to me like the first Session/thread is able to open it, but the second one opens it and this somehow causes the first one to crash. Check Console.log an see if there are any error messages. Is this on OS X?

Xojo Cloud is using cgi under Linux. He can write to resources if the permissions are set right.

I would rather suspect an access conflict.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:13pm UTC](https://forum.xojo.com/t/browser-disconnect-when-other-user-session-connects-why/30154/6 "2020-10-29T18:13:01Z")

</div>


