There is a winform client that connects to server and gets authenticated by providing username and password.
The user first time sends his username/password to the server, after that if didn't log out there is no need to get authenticated once more (like Github client or Windows Live Mail)
So I want to know:
- what server should return back if username/password is valid, a true/false value or something else?
- at the next run, how can I check if user authenticated last time and is logged on? which values should I check exactly? considering not allowing data tampering
- If I save hashed password in app settings, how can I avoid stealing it by another one?
(Is appreciating avoided here in stackoverflow? ;) )