Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SessionTimeout
#1
Hi,

Can I set ServerController.SessionTimout to be User specific?

Mikael
Reply
#2
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)
Reply
#3
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;
Reply
#4
You should change the value for the WebApplication object (which is for the session), not the (global) ServerController default value.
Reply
#5
Thanks,

working
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)