Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Love your show. Love your rants about technology. To get you started: I rewrite my php app (start rant here ;) ) Since I want to use a modern and standard Application stack, I decided to have my backend still in PHP and my frontend in angulasjs.
- So my question is about the PHP API: How should I set this up. Right now I want to use PHP to create a JSON API using my old session cookie to track my sessions. Sounds a little old school but OK ... I thought and than I googled.
- Everybody tells me to do a RESTful API ... OK I understand that, but here comes my question: Why should I not track my session with the PHP session? I understand that I should not store any information in to the session because than the API is not RESTful, but why can I not use the session to save my authentication? How would you work here? JSONtokens? Are they not the same as sesson cookies?
- Looking forward to the wisdom of the great JarJar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement