Skip to content

Instantly share code, notes, and snippets.

@case-eee
Last active November 29, 2017 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 23 You must be signed in to fork a gist
  • Save case-eee/4ec903b9c5f32d29c568e4b7bab91123 to your computer and use it in GitHub Desktop.
Save case-eee/4ec903b9c5f32d29c568e4b7bab91123 to your computer and use it in GitHub Desktop.
Sessions, Cookies, and Flashes

Sessions, Cookies, and Flashes

  1. If we didn't have cookies and sessions, what would happen?
  2. What is a cookie?
  3. What's the difference between a cookie and a session?
  4. What's serialization and how does it come into play with sessions?
  5. Why would we want to store a user id in a session?
  6. What is a flash? How long does a flash have before it expires?
  7. What syntax would I use to add a user_id key and value to the session?
  8. What does "HTTP is stateless" mean?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment