Jump to content

Help with SessionTimeout


Recommended Posts

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

1 hour ago, Sherzod said:

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

×
×
  • Create New...