I tried to check the LastError property of the Replication Pull and Status, all I got is
LastError = null, Status = Idle.
But when I check the Sync Gateway log, I can clearly see the session is expired:
015-11-09T11:23:50.401+09:00 HTTP: #430: --> 401 Login required (0.4 ms)
How can I check if the session is expired?