Sessions, Cookies, and Flashes
- If we didn't have cookies and sessions, what would happen?
- What is a cookie?
- What's the difference between a cookie and a session?
- What's serialization and how does it come into play with sessions?
- Why would we want to store a user id in a session?
- What is a flash? How long does a flash have before it expires?
- What syntax would I use to add a
user_id
key and value to the session? - What does "HTTP is stateless" mean?