You are not logged in.
What is the most optimal method can be used to monitor client-side session timeout or disconnection?
Offline
What do you call "monitoring"?
On which side do you want to track client activity? Server side or client side?
Are not the logs enough?
You have specific information on both sides.
Do you want to have some events triggered at specific states, that's it?
Offline
Do you want to have some events triggered at specific states, that's it?
Yes it is. Not enough events by which a client could see that sessions has timed out or lost connection.
Offline
Yes it is. Not enough events by which a client could see that sessions has timed out or lost connection.
So only on client side?
Something similar to the callback event triggerred in case of authentication error?
In the meanwhile, the easiest is to inherit from the client class and add your own process to the returnded status.
Offline
Arnaud, so when the connection is lost with the server the best recovery is simply to connect again?
fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...
Offline
I think the timeout stuff is a little ugly.
I do see the case for it, but it would be nice if the server remembers the timed out session and returns some message to the client, like:
403
Your session timed out
Or even another custom error code, because on the client we can capture this and later reconnect.
Offline