jeudi 1 juillet 2021

jSessionId changed lead to DB entry can't be removed

I open 2 windows, both have logged into the my web page.

In one window, I start a service which set up a session between browser and backend. And it save an entry in backend DB with sessionId and jSessionId.

Normally, I can stop the service on browser, then backend can delete the entry with sessionId and jSessionId.

But I logout the user in the other window when service is working in the first window. This causes the session broken and the jSessionId changed. So the entry in DB for this service can't be deleted anymore.

Does anyone know how can we handle this case?




Aucun commentaire:

Enregistrer un commentaire