I'm trying to implement a simple login system in my application. The C# application would send a POST request with user id and password to the PHP script. Then the PHP script would check if the user id exists, and if the password is correct. If yes, it would return some data(time left, unique id). I'm not sure how to return the data to my application though, what would be the best way in your opinion?
Thanks.