![]() |
|
URLBase without trailing '/' - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: URLBase without trailing '/' (/thread-1314.html) |
URLBase without trailing '/' - MJS@mjs.us - 10-13-2019 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.
RE: URLBase without trailing '/' - Alexandre Machado - 10-15-2019 Are you using cookies? Why are you using URLBase with Indy project (i.e. do you have a reverse proxy)? RE: URLBase without trailing '/' - Alexandre Machado - 10-15-2019 I can't recreate this behavior with any Http.sys application from our test cases. If you try the demos on github you get a 404 as soon as you try to start a new session without the trailing slash... RE: URLBase without trailing '/' - MJS@mjs.us - 10-15-2019 Attached is a new, default (with URLBase), http.sys project created from C++ Builder 10.3.2 IW 15.1.5. To reproduce:
RE: URLBase without trailing '/' - Alexandre Machado - 10-16-2019 Yes, I can confirm that it behaves as you propose, but only in Chrome. Firefox doesn't do that. We have a fix in place and it will be available in the next release. Cheers RE: URLBase without trailing '/' - MJS@mjs.us - 10-16-2019 >>Yes, I can confirm that it behaves as you propose, but only in Chrome. Firefox doesn't do that. I see it in Edge also. >>We have a fix in place and it will be available in the next release. Thanks Alexandre. RE: URLBase without trailing '/' - Alexandre Machado - 10-22-2019 It is fixed in IW 15.1.7. Please update |