I’m using the PHP Tonic framework.
I took this example as starting point:GitHub link
I would like to add an auth method based on cookie. Is that the correct solution?
The previous one was based on a token variable in the querystring something like:
/serviceName?token=XXXXXXXXxxXX**&
The token was valid for 10 seconds.
Of course, it’s not a proper solution. I cannot use the browser cache, because the token changes every call.
Ideas?
A possible solution is using the HTTP headers.