There is no directly solution. One possible solution is to maintain a login status:
1. write a value after login.
2. clean this value before logged out.
This solution is not robust enough, it would be broken while player disconnected by shot down or force closing application.
In conclusion, there is no good solution if using pure parse.
Firebase could maintain a online users list, so that it could be solved with firebase. But the cost will be increasing.