I´m connecting from Wakanda Enterpise v11 to 4D Server using 4D mobile and Connect to Remote Datastore. i respect 60 minute timeout value.
In 4D, on 4D Mobile Authentication Method, all data is fine ($1 contains username and $2 contains password).
When inactivity gets more than 60 minutes and trying to send a wakanda request, on 4D Mobile Authentication Method on 4D $1, $2,.. values are empty and returns "error".
How can I renew/reconnect the connection without restart/reload wakanda sever/model from wakanda server function or how could I set timeout to unlimited?
I´m trying to recover the connection with 4D Server using
mergeoutsidecatalog()- sending rest request to 4D
- etc.
Nothing works
I think that the best thing you can do is, that before you send any request to the server, you test the session expiration.
You can use
currentSession(). If it returns "default guest" it means that the session has expired. Then you redirect the user to the login page.