10-13-2019, 07:17 PM
While switching a project to http.sys I noticed some odd behavior while testing (but http.sys is not the issue, problem also occurs in Indy mode).
If you use 'URLBase' and reference the url without a trailing '/' the main page will load and the url in the browser will now display a trailing '/'. If you reference the url again without a trailing '/' the main page will load but a new session is created instead of using the original one. In my case I just bookmarked the app without the '/' and I was able to create a couple hundred orphaned sessions with one minute of clicking the link. I created a new, default IW project and the result is the same. A work around is to use an 'IWServerControllerBaseBeforeNewSession' event but then you get 404 without the trailing '/', not ideal.
If you use 'URLBase' and reference the url without a trailing '/' the main page will load and the url in the browser will now display a trailing '/'. If you reference the url again without a trailing '/' the main page will load but a new session is created instead of using the original one. In my case I just bookmarked the app without the '/' and I was able to create a couple hundred orphaned sessions with one minute of clicking the link. I created a new, default IW project and the result is the same. A work around is to use an 'IWServerControllerBaseBeforeNewSession' event but then you get 404 without the trailing '/', not ideal.
![[Image: 2019-10-13_13-42-01.png]](https://mjs.us/2019-10-13_13-42-01.png)