iphone - Should I authenticate a user's password for every server request? -


i apologize if may common sense some, i'm still learning. have ios app syncs files web server. once user logs in on device, remains logged in unless signs out. currently, whenever user initiates server request, such adding, updating, or deleting files, send user's email , not password server, since user authenticated on device.

should sending user's stored password each time makes request , have server authenticate before proceeding request? why or why not?

you should send session identifier, rather email address.

the session identifier large number (128 bits sufficient) chosen cryptographic random number generator when user authenticated. set "cookie" in user's web device , sent each request on secure channel (tls).

email addresses public. can authenticate requests secrets, password or session identifier.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -