Forum Moderators: coopster

Message Too Old, No Replies

Planning on building an API

         

FiRe

8:53 am on Jun 29, 2009 (gmt 0)

10+ Year Member



I plan to build an API for my website, the user who wants to use it must authorize themselves by sending an API key via POST.

I am thinking if the user is authorized, it saves their details in a session so that I do not need to check the database each time to verify the key.

Will this work if I just store this in a simple session? Bare in mind people would be writing scripts to interact with the API and not using their web browser.

jatar_k

2:43 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



with no browser it is probably better to authenticate on each call, it doesn't waste much time