Task#5593 check/clear session in case of broken state
Merge pull request #114 from vigov5/task#5593

Task#5593 check/clear session in case of broken state