Enroll by June 5th, 2023Enroll Now
OUR PROGRAMSFull-stack Web Development Front-end Web Development Back-end Web Development Explore Our Programs Our Students Sample projects and assignments How We Teach FAQs Message Us
YOUR ACCOUNTMy Classroom
Web Development Jargons Explained in 4 Different Ways
TLDR: Cookies are small data that are stored on a web browser to help websites keep track of your log in status, items in your active shopping cart, whether you are in dark mode, etc.
Cookies are small data that are stored on a web browser to help websites keep track of your log in status, items in your active shopping cart, whether you are in dark mode, etc.
Apart from being used for essential things like authentication and user preference, it is also used for tracking. User browsing history can be stored in cookies and sent to ad networks so they can show you more relevant ads.
Cookies do so much more than just being a snack.
A cookie containing a unique session id is sent from the server to the browser when a user first visits a website. This session id helps the website differentiate one user from another without them needing to log in.
If this was an online store, the user can add items to the shopping cart and have it remembered the next time he/she visits the website again. As long as the session cookie is not deleted.
The website stores the shopping cart data in the server, linking it to the unique session id. When the user visits the online store using the same browser in the future, the session cookie is sent to the server and the shopping cart data is sent back along with the web page.
You can experience this by visiting online stores or flight searchers and try to add items to the shopping cart or search for a flight. Leave the site then come back to it using the same browser, you should see your previous activity still there.
With the enforcement of GDPR, General Data Protection Regulation, on 25 May 2018, all websites are now required to receive informed consent from European Union users before any identifier cookies are used. This includes session cookies, tracking cookies and most other cookies.
EU users also need to be able to edit their cookie consent settings anytime they want. This is a complex feature to implement, and can be hard to achieve by small independent websites.
Cohort 78 begins on June 5th, 2023
Learn back-end development with Ruby and Rails. Computer science fundamentals with practical programming skills.
Students and instructors from world-class organizations