Using cuba locking functionality

Good day

Cuba locking functionality works fine but i figured there was a small problem. I created a lock for a specific table, this table was locked successfully and released successfully when the editor is closed.

The problem is when the user closes the browser, the lock is still kept active and not automatically released, thus this will require a system admin to release the lock manually.

Is there not a way that cuba can know when the browser is closed and automatically release the lock as well?

Thank you in advance

Hi,
In theory, the application could release locks on the HTTP session expiration, but it is not implemented in the framework. The only way to release locks automatically now is to set reasonable timeouts for them.

Thank you.