Skepsis IT Posted February 8, 2016 Posted February 8, 2016 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 Quote
Administrators Farshad Mohajeri Posted February 8, 2016 Administrators Posted February 8, 2016 Hi Put a uniTimer on your mainForm with an empty handler. Adjust the interval to 5 minutes or something. Quote
Skepsis IT Posted February 8, 2016 Author Posted February 8, 2016 Thanks a lot Farshad! That will be fine! Quote
NizamUlMulk Posted March 10, 2017 Posted March 10, 2017 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? Quote
Harry Rogers Posted March 10, 2017 Posted March 10, 2017 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; Quote
Administrators Farshad Mohajeri Posted March 10, 2017 Administrators Posted March 10, 2017 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 Quote
NizamUlMulk Posted March 16, 2017 Posted March 16, 2017 I was linked the e-mail address, what follows? Quote
NizamUlMulk Posted March 16, 2017 Posted March 16, 2017 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 Quote
Harry Rogers Posted March 16, 2017 Posted March 16, 2017 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 Quote
Administrators Farshad Mohajeri Posted March 16, 2017 Administrators Posted March 16, 2017 Please test with latest build Quote
Harry Rogers Posted March 16, 2017 Posted March 16, 2017 Thanks Farshad With build 1.0.0.13814 (XE8 32bit) setting a value for ExtendTimeOut does result in the next OnTimeout being fired at an interval equal to that value. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.