My understanding about cookiesSay our users are trying to log in with Google Authentication (gAuth). People seem to send a cookie to the database and send it the cookie back to the web app. The cookie will give the web app information about the relationship e between the user and the database. It's useful in things such as seeing if the user is already registered in our database.My understanding on Why We Use CookiesBut we could also do another approach: Why not let users log in with gAuth and then do a HTTP GET request to see if the user is in our database? This is more complicated, but I guess that's the reason why cookies exist? In essential, Cookies are basically a simple "GET" method that's used to get user info on our databases. Are there any other takeaways I missed?
Submitted September 01, 2020 at 11:24PM by badboyzpwns
No comments:
Post a Comment