Entries in system.session table are not cleared properly
1
Hi, We are currently using cypress to run our automation tests. In case of failure, we won’t be able to perform a logout. And because of this, we reach the max sessions for a trial license. So to overcome this problem before each test run we also run a task that destroys the sessions. The code for destroying sessions is below: Collection<? extends ISession> sessions = com.mendix.core.Core.getActiveSessions(); for (ISession iSession : sessions) { Core.logout(iSession); } The above code doesn’t seem to clear system.session table completely. Sometimes it is observed that some entries still exist in the table, the system$session_user table is cleared properly.
asked
AnudeepReddy C
1 answers
0
Hello,
It has been a long time since this question was asked, but I think I've managed to find a way to overcome this issue. So I believe it's worth posting my solution for the benefit of the community: