Wicket Posted July 13, 2018 Share Posted July 13, 2018 ***EDIT*** Answered my own question below, but left here in case it helps anyone else. Hi All, I have a situation where on some occasions I pass in two parameters to the application, lets say encrypted username and password. I have code in UniGUIMainModuleBeforeLogin which handles skipping the login screen if these parameters are passed in. I use this functionality if a user needs to be directly routed to the application without seeing the login screen. It works great. However, my problem occurs when I want to logout, I call "ModalResult := MrOK" on my main form and this logs me out, but the original parameters are still there and thus I am logged back in, skipping the login form. Except in the case of logging out I want login form shown. Is there anywhere I can clear the parameters? This would then allow the function in UniGUIMainModuleBeforeLogin to fail as the parameters would be empty. Alternatively could I redirect to a parameter-less URL. I have tried URLRedirects and trying to clear the parameters - but no luck. Does anyone have any ideas how I might achieve the result I need? Quote Link to comment Share on other sites More sharing options...
Wicket Posted July 13, 2018 Author Share Posted July 13, 2018 I have found a workaround - which does what I need. Using - UniSession.UrlRedirect('?'); This basically removes the parameters and navigates to this address - "http://localhost:8078/m/?"which takes me back to my login screen, 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.