0% found this document useful (0 votes)
9 views

Cookies

Cookies allow websites to remember users and personalize their experience. When a user visits a website, the website can give the user's browser a small piece of data called a cookie. The next time the user visits, their browser sends the cookie back to the website, helping the website remember who they are. While cookies provide benefits like customization and seamless login processes, they can also raise privacy concerns by enabling extensive user tracking and data collection without consent.

Uploaded by

Shreya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Cookies

Cookies allow websites to remember users and personalize their experience. When a user visits a website, the website can give the user's browser a small piece of data called a cookie. The next time the user visits, their browser sends the cookie back to the website, helping the website remember who they are. While cookies provide benefits like customization and seamless login processes, they can also raise privacy concerns by enabling extensive user tracking and data collection without consent.

Uploaded by

Shreya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

User-Server

Interaction: Cookies
User server
interaction:cookies
● Think of an HTTP server like a restaurant that serves many customers. It takes
orders from them but doesn't remember who they are once they leave. This is what
we mean by "stateless" - it doesn't retain any memory of past interactions. Now,
imagine you want the restaurant to remember you so that next time you visit, it
knows your favorite dish or where you prefer to sit. That's where cookies come in.
● So, when you visit a website, it can give your browser a cookie, which is a small
piece of data. The next time you visit, your browser sends that cookie back to the
website. This helps the website remember who you are and personalize your
experience, like showing you relevant content or keeping you logged in.
Alright, let's break down how cookies work using the example with
Susan and Amazon:

01 02
Cookie Header in HTTP Response Cookie File on User's End
Message System

03 04
Cookie Header in HTTP Back-end Database at
Request Message the Web Site
1.Cookie Header in HTTP Response Message:
The "Cookie" header in the HTTP response message is used by the server to send a cookie
to the client's browser. This header contains the information about the cookie, including its
name, value, expiration date, domain, and path.

2.Cookie File on User's End System :


The "Cookie File" on the user's end system refers to a storage mechanism within the user's web
browser where cookies are saved. When a web server sends a cookie to the user's browser, the browser
stores it in this cookie file.
3. Cookie Header in HTTP Request Message
The "Cookie" header in the HTTP request message is used by the client's browser
to send cookies back to the server when making a request. This header contains
the cookies that were previously stored by the browser from the server's response.

4. Back-end Database at the Web Site


The back-end database at the website is where the server stores and manages
user data, including information related to cookies. When a server sends a cookie to
a client's browser, it typically associates that cookie with a unique identifier stored in
its database.
DIAGRAM
CONCLUTION-
In conclusion, cookies play a crucial role in enhancing the user experience on the web by
enabling websites to personalize content and services based on individual preferences and
browsing history. They facilitate the identification of users across sessions, allowing for
seamless interactions and the provision of tailored features like personalized
recommendations and convenient login processes.

However, while cookies offer benefits in terms of convenience and customization, they also
raise privacy concerns. The extensive tracking capabilities they afford can potentially
infringe upon users' privacy by enabling the collection and sharing of sensitive information
without their explicit consent.
Thank you
-SHREYA GORE (1JS21IS101)
-SHREYA S (1JS21IS102)
-SHREYAMBIKA GURUPRASADA HEGDE (1JS21IS103)
-SHUBODH S (1JS21IS104)

You might also like