Fix Ajax Session loss Feature for 401 Standard Conformity

This PR should be subject to discussion!
@meeee @cnrk @tessi