Remaining Session time

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
sotos
Posts: 31
Joined: Fri Feb 09, 2018 11:25 pm

Remaining Session time

Post 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
sotos
Posts: 31
Joined: Fri Feb 09, 2018 11:25 pm

Re: Remaining Session time

Post by sotos »

I guess the Timer class
https://docs.lansa.com/14/en/lansa016/prim_timr.htm
shoudld do the job.
:mrgreen:
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Remaining Session time

Post 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
sotos
Posts: 31
Joined: Fri Feb 09, 2018 11:25 pm

Re: Remaining Session time

Post by sotos »

Hello,

thank you!

Sotos
Post Reply