Atozed Forums

Full Version: SessionTimeout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Can I set ServerController.SessionTimout to be User specific?

Mikael
Yes, IWApplication.SessionTimeout is a public property. You can set it at anytime (e.g.when session is firstly created or after a successful user login)
Hi,

It does not work. It's still the value you have set up from the start that is the the timeout value

This is ignored:

..
..
      0: Begin  { Logon ok }
            InitateUserPartdata(UserId);
            IWServerController.SessionTimeout:=(60 * 5);    { 5 hours }
            If (UserSession.SysUser) then begin
              IWServerController.SessionTimeout:=60;
            end;
            if (UserSession.UserId = 'NXXXI1') then begin { My test }
              IWServerController.SessionTimeout:=5;
            end;
You should change the value for the WebApplication object (which is for the session), not the (global) ServerController default value.
Thanks,

working