fixes #3132 in maintenance-3.x
Merge pull request #3157 from mesutcelik/backport3132

fixes "isNew() does not check the HC Session Cache" in maintenance-3.x