server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

[IMP] session_db: add method delete_from_identifiers

Open maq-adhoc opened this issue 2 months ago • 3 comments

Added the delete_from_identifiers method to PGSessionStore. This method allows bulk deletion of session records from the http_sessions table based on a list of session identifiers (sid). It is triggered from the backend via the "Revoke" button

maq-adhoc avatar Oct 14 '25 11:10 maq-adhoc

Hi @sbidoul, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Oct 14 '25 11:10 OCA-git-bot

Ah I had not noticed delete_from_identifiers was there in 18.0 too.

If I'm not mistaken, the identifiers provided to that method are the first 42 characters of the sid.

It handled that in the 19.0 migration. You may want to review https://github.com/OCA/server-tools/pull/3413 and then extract the relevant part for 18.

sbidoul avatar Oct 14 '25 11:10 sbidoul

@sbidoul Perfect, I backported 19. Regards

maq-adhoc avatar Oct 20 '25 15:10 maq-adhoc