Time-outs in LC Server?
harrison at all-auctions.com
Thu Jul 25 12:12:27 EDT 2019
The solution turned out to be easier with no time checks involved.
I noticed that one of my variables ends up being blank when the
server times out. So when the user attempts to do something,
the destination webpage performs a check at the beginning of
the code to see if the variable is blank. If it’s blank, I have
alternate code appear that tells the user they have been logged
out due to inactivity, and offers a dismiss message button that
links back to the login page. It works quite nicely, and
I don’t have to check for every transaction in every format file.
Enjoy your day!
> On Jul 19, 2019, at 9:47 PM, Alex Tweedly via use-livecode <use-livecode at lists.runrev.com> wrote:
> On 19/07/2019 14:28, Rick Harrison via use-livecode wrote:
>> to before. I just want a clean LC way to do the same thing.
> Sorry to be the bearer of bad news, but there is no such thing, and indeed, there cannot be!
> Your LC code can only run on the server. And on the server, all you can do is - at the start of responding to a request - check how long it has been since the previous request from same user.
> So that requires some storage between requests - whether in a database, or via cookie / session variable.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode