Fix login after a session expired [#11763]
Fix login after a session expired

Resolves #11763

Merge remote-tracking branch 'origin/pr/11768'

* origin/pr/11768:
  Fix login after a session expired [#11763]