Skip to content

Instantly share code, notes, and snippets.

View tanmdoan's full-sized avatar

Tan Doan tanmdoan

View GitHub Profile
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?
### Keybase proof
I hereby claim:
* I am tanmdoan on github.
* I am tanmdoan (https://keybase.io/tanmdoan) on keybase.
* I have a public key ASBvF-XGdqIdkvuqJaZcad6ywNG9FdHw_Db_nkguA_2q5wo
To claim this, I am signing this object:
Vs code setup
@tanmdoan
tanmdoan / cloudSettings
Created March 24, 2020 16:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-24T16:40:42.947Z","extensionVersion":"v3.4.3"}