When using the Client API after the Client session has expired e.g
Code: Select all
var result = $eb.executeFunction("functionName", params)
// Do something with the result but result is undefined here
Code: Select all
{"forwardToErrorUrl":"http://localhost:3030/ufs/ufs_timeout_page.htm","goToUrl":null}
Otherwise the user may not realise their session has expired. I was thinking if it would be possible to return a HTTP Status of 401 or 403 instead of 200 OK and then redirect to that page? I've looked at the Client API guide but there is no mention of what happens in the event of a session timeout when using the api. When clicking a button /element on a form that doesn't use the client api, the browser gets redirected correctly to the redirect target url page but when using the client api and the session has timed out, nothing happens.