03-09-2023, 11:00 AM
(03-09-2023, 10:40 AM)jeroen.rottink Wrote: I use
Code:SessionController.SessionOptions.RestartExpiredSession := True;
combined with
Code:procedure TIWServerController.IWServerControllerBaseSessionRestarted(aSession: TIWApplication);
begin
// mark session as restarted
TIWUserSession(ASession.Data).Clipboard.Put('SessionRestarted');
ASession.RunParams.Clear;
end;
In the form that is shown after a new session is started you can check this clipboard value to show the user a notification.
Code:procedure TDlgAppForm.OnFormRender;
begin
if UserSession.Clipboard.Get('SessionRestarted')
then ShowAlert(atInfo, _('Sessie was verlopen. Nieuwe sessie gestart.'));
end;
OK, But that starts a new session immediately. Which means that no resources are released and the reason for having a timeout is unnecessary.
I want the timeout to take affect and just redirect the user to a html page outside my application so the user can make the session if he wants to logon again or not.

