delagoutte Posted October 31, 2017 Share Posted October 31, 2017 Hello, My unigui app is divided on 2 app. first app is used only for identification of my client. When the client is identified on first app, the client is redirected to an other appp on other server. So for exemple, i have client 1,2,3 that are affected to server1 and client 4,5,6 that are affected to server2. this allows me to do a load balancing on many server. i would like implement a backup url for the second app. for exemple, the user1 identify it self and must be redirect to app on server1. i would test that this app is online and if it is not online the client will be redirect to server3 (server backup) so how can i test if an unigui app is online or not without creating ghost unigui session that are used only for test ? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted October 31, 2017 Author Share Posted October 31, 2017 an idea : i see that if i call http://localhost/ext-4.2.5.1763/resources/css/ext-all.css(or other file publish by my app) it seem that there is not unisession that is open. so i was thinking that i could publish a file that i could call with indy and if i receive a readystate = 200 it means that my uniapp is online. What do you think ? can there be an edge effect on the unigui application if I use this method Quote Link to comment Share on other sites More sharing options...
heromo80 Posted October 31, 2017 Share Posted October 31, 2017 Hi, That's the same thing I do for load balancing. In the application 1 where the user is authenticated I have a table with the Urls of the application 2 (main) with addresses to the servers and a field that activate / deactivate the URL, with this I can massively update the application 2 rotating between servers without have to get the users out. I apply for each user an Url depending on the active server (to minimize the download of the js, css, images, etc of ExtRoot and UniRoot), that's why it's important to have a CDN, since if you left the urls randomly every session the user had to download these previous files and it was delayed or the user had to try the load several times. More information: http://forums.unigui.com/index.php?/topic/6943-iis-85/?p=46933 Best regard Quote Link to comment Share on other sites More sharing options...
asapltda Posted October 31, 2017 Share Posted October 31, 2017 Hi, That's the same thing I do for load balancing. In the application 1 where the user is authenticated I have a table with the Urls of the application 2 (main) with addresses to the servers and a field that activate / deactivate the URL, with this I can massively update the application 2 rotating between servers without have to get the users out. I apply for each user an Url depending on the active server (to minimize the download of the js, css, images, etc of ExtRoot and UniRoot), that's why it's important to have a CDN, since if you left the urls randomly every session the user had to download these previous files and it was delayed or the user had to try the load several times. More information: http://forums.unigui.com/index.php?/topic/6943-iis-85/?p=46933 Best regard Hello, Could you please indicate how to pass the user and password to the second application or pass in the id obtained in the first application to the second application Tks Quote Link to comment Share on other sites More sharing options...
heromo80 Posted November 1, 2017 Share Posted November 1, 2017 Hi, In the app1 where the user is authenticated, a string is formed with the user parameters, database, random control code is encrypted and passed as a parameter for the app2. in the app2 it is received and the application can only load if the parameters are valid in front of a common database that verifies that the control id is valid. You could also use the sessionID of the app1, which would have greater security by ensuring only once the use of the parameter step to the app2. Example: "http://server.com/app2/app2.dll/?id=AHnl1BTEf7Rbt7m2dAbPKYowBoMDA"(only valid once). The important thing is that once validated the controlID or sessionID is marked as used so that they can not reload the previously formed url. This applies when you need to have a control system for many databases and users and it is required to have the unigui 24x7 application and be able to have a basic load balancing. It is the practical way that I found and it has worked for several years. 2 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted November 3, 2017 Share Posted November 3, 2017 Thank you for your expertise. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.