Preventing multiple iterations. Issue #4351

Remove the possibility to create an infinite loop in SessionHelper. #4351