Goodbye PHP Sessions, Hello JSON Web Tokens (Example)
A protip by rmcdaniel about php, security, rest, json, and javascript.