Skip to content

Instantly share code, notes, and snippets.

@alanbsmith
Created August 25, 2014 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanbsmith/c2a86f683e673b0bfba5 to your computer and use it in GitHub Desktop.
Save alanbsmith/c2a86f683e673b0bfba5 to your computer and use it in GitHub Desktop.
Storing State in Sessions
  1. What's the difference between a cookie and a session?
  2. What's serialization and how does it come into play with cookies?
  3. Can a cookie be shared by more than one user? How/why?
  4. What would it mean to store a shopping cart in a cookie?
  5. What advantages/disadvantages are there between cookie-stored carts and database-stored carts?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment