Page 1 of 1

Remaining Session time

Posted: Fri May 04, 2018 5:00 pm
by sotos
Hello,

The timeout parameter of StartSession gives the number of seconds of inactivity before the session ends.

Is there any property that gives the remaining time in seconds before the end of the session?
or a property that gives the time since the application started in order to calculate the remaining time?

cheers,
Sotos

Re: Remaining Session time

Posted: Fri May 04, 2018 9:08 pm
by sotos
I guess the Timer class
https://docs.lansa.com/14/en/lansa016/prim_timr.htm
shoudld do the job.
:mrgreen:

Re: Remaining Session time

Posted: Sat May 05, 2018 6:53 am
by dannyoorburg
Hi,

I think you're misinterpreting the SessionTimeout parameter.

Every time you run a request on the server you're keeping the session alive.

It represents the time between requests that causes the server to cancel the session.

So by definition, you can't run code and query it. Every time you run code you reset your session time out...

Danny

Re: Remaining Session time

Posted: Fri May 11, 2018 3:59 pm
by sotos
Hello,

thank you!

Sotos