Implemented Bug #17860 Suggestion: auto detect whether session changed