Alexandre Trevizoli Posted April 29 Share Posted April 29 Hello, I need help. I have an Android APP developed with FMX and which has a TWebBrowser, but when the session times out I would like instead of a message to appear, the system sends the user to the main menu again, automatically creating a new session, or if not It's possible that I could call a new url (in TWebBrowser I'm using the following event to catch URL calls) and with that I could close the form in the APP and send the user to the FMX LOGIN FORM. procedure TfrmMenuPrincipal.WebBrowserShouldStartLoadWithRequest(ASender: TObject; const URL: string); begin if Pos('close://', URL) > 0 then begin webbrowser.Stop; close; end; end; Link to comment Share on other sites More sharing options...
Sherzod Posted April 29 Share Posted April 29 Hello, https://www.unigui.com/doc/online_help/api/uniGUIServer_TUniServerOption.html soRestartSessionOnTimeout Link to comment Share on other sites More sharing options...
Alexandre Trevizoli Posted April 29 Author Share Posted April 29 1 hour ago, Sherzod said: Hello, https://www.unigui.com/doc/online_help/api/uniGUIServer_TUniServerOption.html soRestartSessionOnTimeout Sherzod, but when this start new session, I will lost all parameters values that I add on MainModule? If yes, have way to send user to a specified URL? So I can catch it and send user to login on FMX again. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts