Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I set different Timeout for different Users?
#5
(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.
Reply


Messages In This Thread
RE: How do I set different Timeout for different Users? - by Mikael Nilsson - 03-09-2023, 11:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)