Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. 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.
  2.  
  3. 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.
  4.  
  5. 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?
  6.  
  7. Looking forward to the wisdom of the great JarJar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement