fix session time-out and cannot login again