server icon indicating copy to clipboard operation
server copied to clipboard

fix(session): log session_regenerate_id for debugging

Open ChristophWurst opened this issue 7 months ago • 0 comments

  • For debugging of #42157

Summary

From https://www.php.net/manual/en/function.session-regenerate-id.php

You should not destroy old session data immediately, but should use destroy time-stamp and control access to old session ID. Otherwise, concurrent access to page may result in inconsistent state, or you may have lost session, or it may cause client (browser) side race condition and may create many session ID needlessly. Immediate session data deletion disables session hijack attack detection and prevention also.

A session decryption error like HMAC mismatch triggers the session ID to regenerate, which in turn could lead to a lost session.

TODO

  • [ ] ...

Checklist

ChristophWurst avatar Jun 16 '25 09:06 ChristophWurst