0% found this document useful (0 votes)
15 views11 pages

Cookies

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)
15 views11 pages

Cookies

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/ 11

PAGE 1

What are Cookies?

 Cookies are small text files that websites store on a


user's device (such as a computer or smartphone)
when the user visits the site. These files contain
information about the user's interaction with the
website and are designed to enhance the user
experience.

PAGE 2
Types of First-party cookies
Cookies Third-party cookies

PAGE 3
First-party cookies are cookies that are
created and saved by the website you
are currently visiting. These cookies
First-party are set by the website's domain and are
Cookies mainly used to improve your
experience by remembering your
preferences, managing your sessions,
and delivering personalized content

PAGE 4
 Third-party cookies are cookies that
are created and stored by domains
other than the one the user is
currently visiting. These cookies are
Third-party set by external entities, such as
Cookies advertising networks or analytics
services, and are commonly used to
track users across different websites.
Third-party cookies play a significant
role in online advertising

PAGE 5
Based on the duration of the cookie’s existence ,
first-party and third-party cookies are divided
into “session cookies” and “persistent cookies”

PAGE 6
 Session cookies are temporary, short-lived
data files that websites store on a user's
device during their visit. These cookies
serve to facilitate and enhance the user's
experience on the website for the duration
Session of a single browsing session. They are
typically used for session management,
Cookies storing temporary information, and
ensuring continuity as users navigate
different pages within a website. Once the
user closes their browser or ends the
session, session cookies are usually deleted
automatically.

PAGE 7
 Persistent cookies are data files that
websites store on a user's device for a
specified duration, even after the user
Persistent closes their browser. Unlike session
Cookies cookies, persistent cookies have a
longer lifespan and are designed to
persist across multiple browsing
sessions.

PAGE 8
How to Inspect Cookies ?
 In google chrome ,
 Right-click anywhere on the page and select "Inspect“.
 In the Developer Tools, navigate to the "Application" tab.
 Look for a "Cookies" section in the left sidebar. You can view and manage cookies
associated with the current page.

PAGE 9
To display a welcome message on a user's first visit and then avoid
showing it again, you can use cookies to track whether a user has
visited before. Here's a simplified example using JavaScript:

PAGE 10
Sample Output

PAGE 11

You might also like