Last active
August 29, 2015 14:05
-
-
Save tanmdoan/1c6922365c5ca72e6c49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. What's the difference between a cookie and a session? | |
A cookie is an object that is passed on with request and response so that the server can authenticate the user performing the request. I'm not 100% sure the difference but I think a session stores a secret encryption different from cookie's? | |
2. What's serialization and how does it come into play with cookies? | |
changing object into string for storage | |
3. Can a cookie be shared by more than one user? How/why? | |
No. | |
4. What would it mean to store a shopping cart in a cookie? | |
5. What advantages/disadvantages are there between cookie-stored carts and | |
cookie-stored can't be altered since it is encrypted? database stored carts maybe tinkered with? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment