HTTP Cookies Crash Course
HTTP Cookies are small pieces of data that are used as storage medium in the browser and are also sent to the server with each request. Cookies are mainly used for session management, user personalization, and tracking. In this video we will try to demystify cookies and learn everything there is to them by example and with demos as well! 0:00 Intro 4:15 Section 1 - Creating Cookies 14:38 Section 2 - Cookie Properties 44:00 Section 3 - Cookie Types 1:02:00 Section 4 - Cookie Secuirty Creating Cookies 1. Document.cookie (client side) 2. set-cookie header (server side) Cookies Properties Sent with each request Cookies are automatically sent to the server with each request. so becareful not to stuff your app with cookies because it might slow down as network bandwidth become saturated with bloated requests.. Per Domain They are stored per domain think of them as cookie buckets, for instance you visit google.com you will get a specific cookie for google.com, any cookies created while in google.com will go to the google.com bucket and so on. there are exceptions but this the general rule. by default if you create cookie, it will only be accessable within the domain, it will only be sent to the same domain. You can create a cookie with the domain property which will also include subdomains. example, domain=husseinnasser.com , includes blog.husseinnasser.com, about.husseinnasser.com etc.. Example.com www.example.com Path specific cookies cookies for a given path only. /r1 /r2 routes make only cookie for r1 and cookie for r2 client will only send cookies for that path. if you know you are going to use the cookies in certain paths why waste precious bandwidth sending it with every path? Cookies Types 1. Session cookie - no expires or max-age, once browser close they are “deleted” browsers are being smart and keep them though 2. permanent cookie - set max-age 3. httponly cookie cannot be accessed with document.cookie 4. secure cookie only acceptable with https 5. Third party cookie - page references another page, gets its own cookies.. 6. Zombie Cookies - recreted even after users delete them, e-tags from the server Cookie Security 1. Stealing cookies, inject XSS script, 2. cross site request forgery, more dangerous and easier, I don’t want your cookie I just want to make a request on your behave using your cookie and make myself an advtange as a result.. since you are signed in to your bank I will inject a script that makes a request ot YOUR bank to transfer myself money.. samesite Stay Awesome! Hussein

gRPC Crash Course - Modes, Examples, Pros & Cons and more

WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more

Hyper Text Transfer Protocol Crash Course - HTTP 1.0, 1.1, HTTP/2, HTTP/3

Deep Dive into LLMs like ChatGPT

What are web servers and how do they work (with examples httpd and nodejs)

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Introduction to Programming and Computer Science - Full Course

HAProxy Crash Course (TLS 1.3, HTTPS, HTTP/2 and more)

The Future of Cookies - Anders Abel - NDC Security 2024
![Hands-On Power BI Tutorial 📊 Beginner to Pro [Full Course] 2023 Edition⚡](https://i.ytimg.com/vi/77jIzgvCIYY/hq720.jpg?sqp=-oaymwEbCNAFEJQDSFryq4qpAw0IARUAAIhCGAG4AvcY&rs=AOn4CLDhJGmNZ_y3_JL3SVUAXRJVBh8erg&usqp=CCc)
Hands-On Power BI Tutorial 📊 Beginner to Pro [Full Course] 2023 Edition⚡

Node.js Crash Course

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

The Unity Tutorial For Complete Beginners

MERN Stack Tutorial for Beginners with Deployment – 2025
![SQL Course for Beginners [Full Course]](https://i.ytimg.com/vi/7S_tz1z_5bA/hq720.jpg?sqp=-oaymwEbCNAFEJQDSFryq4qpAw0IARUAAIhCGAG4AvcY&rs=AOn4CLCV4Cima1nx19tBObVX3l1NeRMD5g&usqp=CCc)
SQL Course for Beginners [Full Course]

GraphQL Crash Course

DNS is beautiful

Apache Kafka Crash Course
![Power Automate Tutorial ⚡ Beginner To Pro [Full Course]](https://i.ytimg.com/vi/KsgxDz-nY_I/hq720.jpg?sqp=-oaymwEbCNAFEJQDSFryq4qpAw0IARUAAIhCGAG4AvcY&rs=AOn4CLDXx5h31JVwYQZdHokNhDu1wF3z4A&usqp=CCc)
Power Automate Tutorial ⚡ Beginner To Pro [Full Course]

