Jump to content

Session timeout postpone


Skepsis IT

Recommended Posts

Hi to all,

 

I have a thought to implement a Pos system with unigui. One of the problems that i face is the timeout of session. In a pos a user will login and must not have a timeout till the log off time. The pos may stay idle for a long period.

 

Is there a way to postpone session timeout?

 

Thanks to all

Link to comment
Share on other sites

  • 1 year later...

Hi skepsis, Farshad.
I've purchased UniGui in 2015, because the Session Expired always appear, now, coming again with a Unigui project same message still appears, in a few seconds, 2 minuts or minus.

How can I supperate this obstacle?.
I've aggregated a Timer for trigger each 60 seconds, but only a time fires, because the session timeout appears....
Help!
Another thing, why not fires the UniFormCreate for uniforms?

Link to comment
Share on other sites

Hi

 

You can use the SessionTimeout event of MainModule.

 

where bExtend in this example is a Boolean controlled by what ever logic you need to allow or disallow the timeout.

 

procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject;
  var ExtendTimeOut: Integer);
begin
 if bExtend then
  extendTimeout := 60000; //or whatever period you need before rechecking if a timeout is appropriate
end;
Link to comment
Share on other sites

  • Administrators

Hi skepsis, Farshad.

I've purchased UniGui in 2015, because the Session Expired always appear, now, coming again with a Unigui project same message still appears, in a few seconds, 2 minuts or minus.

How can I supperate this obstacle?.

I've aggregated a Timer for trigger each 60 seconds, but only a time fires, because the session timeout appears....

Help!

Another thing, why not fires the UniFormCreate for uniforms?

 

Hi,

 

Can you please make this adjustment:

 

http://forums.unigui.com/index.php?/topic/6291-important-announcement/?p=32063

Link to comment
Share on other sites

 

Hi

 

You can use the SessionTimeout event of MainModule.

 

where bExtend in this example is a Boolean controlled by what ever logic you need to allow or disallow the timeout.

 

procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject;
  var ExtendTimeOut: Integer);
begin
 if bExtend then
  extendTimeout := 60000; //or whatever period you need before rechecking if a timeout is appropriate
end;

 

years ago that i have this code:

procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject;
  var ExtendTimeOut: Integer);
begin
  ExtendTimeOut := 1800000;
end;

but is ignored

Link to comment
Share on other sites

I get the event fired with ver 1.0.0.1376 on XE8 32bit

I've captured the time of day at each onTimeOut for various Sesion timeouts and extend values.

and it looks like the extend value is not used

 

Session  Extend    Actual 

Timeout   value      interval

10,000    60,000   15,000

20,000    60,000   22,000

30,000    60,000   30,000

60,000    70,000   60,000

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...