Sessions, Cookies, and Flashes
- If we didn't have cookies and sessions, what would happen?
- We wouldnt be able to keep track of a users session, so they wouldnt be able to stay logged in.
- What is a cookie?
- A cookie is a a piece of information stored in hash style on a users computer. They are unsecure and should not be used to store sensitive data. They also have an expiration date.
- What's the difference between a cookie and a session?
- A session is similar to a cookie, but is secured so that it is secure.
- What's serialization and how does it come into play with sessions?
- Serialization uses a private keyo to secure a session so that it cant be tampered with.