Atozed Forums
SessionTimeout - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: SessionTimeout (/thread-1411.html)



SessionTimeout - Mikael Nilsson - 12-02-2019

Hi,

Can I set ServerController.SessionTimout to be User specific?

Mikael


RE: SessionTimeout - Alexandre Machado - 12-03-2019

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)


RE: SessionTimeout - Mikael Nilsson - 12-03-2019

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;


RE: SessionTimeout - magosk - 12-03-2019

You should change the value for the WebApplication object (which is for the session), not the (global) ServerController default value.


RE: SessionTimeout - Mikael Nilsson - 12-03-2019

Thanks,

working