Detect invalidate sessions when app IDs do not match, and force a session reset in that case.