Update on my trying to authenticate user identification on my project: nothing happened. I tried but kept running into dead-ends.
But I learned something pretty cool.
There’s this thing called cookie. If you have been around since the dawn of the Internet age, you probably have experienced the annoying feeling when a little pop-up stopped you from browsing a site you wanted, though I’m not sure if they had cookies back then. Well, these cookies keep track of your visits and activity. So for example, I have an account on The Odin Project, and after I logged in, I can freely move around on the website with my account instead of having to sign in every time I reset the page. This is thanks to cookie. They remember me!
And because the cookie can store log in data, deleting it can log you out. I found that really interesting. Below is an example of when I deleted my cookie on The Odin Project. Check it out!
I thought that was really cool. This made me understand how powerful the DevTool can be, and I got a tiny bit closer to the concept. It used to be this annoying plus mysterious plus inedible cookie, now it’s still annoying and still inedible, but it’s not mysterious. At least I got to know some part of it along the way.
As I moved on to explore more about authentication, I will definitely get to know more about set-cookie and use this to manipulate what users can see on my site. Stay tuned, folks!