What is the best way of validating a user via a webservice?
My user will call a webservice to get their account details. The url will be like mysite.com/ws/getdetails/12 where 12 is the user ID.
What I was thinking was once the user logs in setting a session ID into the database and sending the session ID into the URL so it would be like mysite.com/ws/getdetails/12/fgdfgfd9sdafgsadfdsf and in the function of the webservice checking the session name against the ID.
Is there a better way of doing this?