In cakephp 2.1, I am developing a cakephp application , also web service
for third party application to access data. Output is json.
First time when user logs in through web service we create some
authentication token and for every next call client will send the
authentication token and I have to check authentication token available to
allow other actions of app.
I wrote a login function. when user tries to logs in , it returns success
or failure message. This is where I stuck. How to create this
authentication token? Where does cakephp store user related session? Can I
write session like
> $this->Session->Write('check.session','random string')
and then read it in second client call using
Or is there any other better way to achieve this.