Cookies, privacy and
cybersecurity
Student work: Mansour Abdu
Instructor: Ibrahim Al-Adini
Cookies?
Cookies are small files which are stored on a user's computer. They are
designed to hold a modest amount of data specific to a particular client and
website, and can be accessed either by the web server or the client
computer. This allows the server to deliver a page tailored to a particular
user, or the page itself can contain some script which is aware of the data
in the cookie and so is able to carry information from one visit to the
website (or related site) to the next
Can I see/view the cookies I have on my computer?
What’s in Cookie?
When are Cookies Created?
Why are Cookies Used?
How Long Does a Cookie Last?
Who Can Access Cookies
How Secure are Cookies?
What are Tracking Cookies?
Can I see/view the cookies I have on
my computer?
Most browsers have a configuration screen which allows
the user to see what cookies have been stored on the
computer, and optionally to delete them.
Note that it is not possible for a webpage to view cookies
set by other sites, as this would represent a privacy and
security problem.
What’s in Cookie?
Each cookie is effectively a small lookup table
containing pairs of (key, data) values - for example
(firstname, Mansour) (second name, Mohammed).
Once the cookie has been read by the code on the
server or client computer, the data can be retrieved and
used to customise the web page appropriately.
When are Cookies Created?
Writing data to a cookie is usually done when a new
webpage is loaded - for example after a 'submit' button
is pressed the data handling page would be
responsible for storing the values in a cookie. If the
user has elected to disable cookies then the write
operation will fail, and subsequent sites which rely on
the cookie will either have to take a default action, or
prompt the user to re-enter the information that would
have been stored in the cookie.
Why are Cookies Used?
Cookies are a convenient way to carry information from one session on a
website to another, or between sessions on related websites, without having to
burden a server machine with massive amounts of data storage. Storing the data
on the server without using cookies would also be problematic because it would
be difficult to retrieve a particular user's information without requiring a login on
each visit to the website.
If there is a large amount of information to store, then a cookie can simply be
used as a means to identify a given user so that further related information can
be looked up on a server-side database. For example the first time a user visits a
site they may choose a username which is stored in the cookie, and then provide
data such as password, name, address, preferred font size, page layout, etc. -
this information would all be stored on the database using the username as a
key. Subsequently when the site is revisited the server will read the cookie to find
the username, and then retrieve all the user's information from the database
without it having to be re-entered.
How Long Does a Cookie Last?
The time of expiry of a cookie can be set when the
cookie is created. By default the cookie is destroyed
when the current browser window is closed, but it
can be made to persist for an arbitrary length of
time after that.
Who Can Access Cookies
When a cookie is created it is possible to control its visibility by setting its 'root
domain'. It will then be accessible to any URL belonging to that root. For example
the root could be set to "whatarecookies.com" and the cookie would then be
available to sites in "www.whatarecookies.com" or "xyz.whatarecookies.com" or
"whatarecookies.com". This might be used to allow related pages to
'communicate' with each other. It is not possible to set the root domain to 'top
level' domains such as '.com' or '.co.uk' since this would allow widespread access
to the cookie.
By default cookies are visible to all paths in their domains, but at the time of
creation they can be retricted to a given subpath - for example
"www.whatarecookies.com/images".
How Secure are Cookies?
There is a lot of concern about privacy and security on the
internet. Cookies do not in themselves present a threat to
privacy, since they can only be used to store information that
the user has volunteered or that the web server already has.
Whilst it is possible that this information could be made
available to specific third party websites, this is no worse
than storing it in a central database. If you are concerned
that the information you provide to a webserver will not be
treated as confidential then you should question whether you
actually need to provide that information at all.
What are Tracking Cookies?
Some commercial websites include embedded advertising material which is
served from a third-party site, and it is possible for such adverts to store a
cookie for that third-party site, containing information fed to it from the
containing site - such information might include the name of the site,
particular products being viewed, pages visited, etc. When the user later
visits another site containing a similar embedded advert from the same third-
party site, the advertiser will be able to read the cookie and use it to
determine some information about the user's browsing history. This enables
publishers to serve adverts targetted at a user's interests, so in theory
having a greater chance of being relevant to the user. However, many
people see such 'tracking cookies' as an invasion of privacy since they allow
an advertiser to build up profiles of users without their consent or
knowledge.
Lesson Summary with Cookies and
cybersecurity
Cookies in themselves are harmless. They are just
data stored by a website in your browser, and they are
not malware. It is what sites do with them that
determines whether we like them or not. Some cookies
are essential to use a site properly, and others might be
considered a privacy risk.
References
http://www.whatarecookies.com
https://ar.wikipedia.org

More Related Content

PPT
Internet cookies
PPT
Internet cookies
PPTX
PPT
Presentation on Internet Cookies
PPTX
Zombie Cookies
PPTX
Cookies: HTTP state management mechanism
PPTX
Overview of Cookies in HTTP - Miran al Mehrab
PPTX
Cookie testing
Internet cookies
Internet cookies
Presentation on Internet Cookies
Zombie Cookies
Cookies: HTTP state management mechanism
Overview of Cookies in HTTP - Miran al Mehrab
Cookie testing

What's hot (12)

PDF
What Is Evercookie and Why You Should Avoid It for Privacy’s Sake
PPTX
Cookies testing
PPTX
Cookies: A brief Introduction
PPTX
Using cookies and sessions
PPT
Cookies
PPTX
Cookies in servlets.ppt
PPTX
Sessions&cookies
PDF
EU Cookie Directive ebook
PPTX
PPTX
Presentation portfolio E-business
PPTX
Protect Your System - Use Browser Junk Removal Tool
What Is Evercookie and Why You Should Avoid It for Privacy’s Sake
Cookies testing
Cookies: A brief Introduction
Using cookies and sessions
Cookies
Cookies in servlets.ppt
Sessions&cookies
EU Cookie Directive ebook
Presentation portfolio E-business
Protect Your System - Use Browser Junk Removal Tool
Ad

Similar to Cookies (20)

PPTX
Internet Cookies
PPT
Electronic computer cookies
PPTX
Cookies and sessions
PPTX
Carla Ollé Vera and Aida Pooladian - Cookies and privacy: What do they do wit...
PPTX
Cookies
PPTX
Cookies & log files
PPTX
Cookies & log files
PPT
Online Privacy Eric Zhu T5
PPT
Cookies and sessions
PPT
MCDM State Management
PPSX
Sessions and cookies
PPT
Web Cookies
PDF
Cookie replay attack unit wise presentation
PPTX
Web Browser-add ons.pptx
ODP
Cookies (in Online Advertising)
DOCX
Cookies may be set by the website you are visiting
PPT
16 cookies
PPTX
Cookie management
PPTX
online spying tools
Internet Cookies
Electronic computer cookies
Cookies and sessions
Carla Ollé Vera and Aida Pooladian - Cookies and privacy: What do they do wit...
Cookies
Cookies & log files
Cookies & log files
Online Privacy Eric Zhu T5
Cookies and sessions
MCDM State Management
Sessions and cookies
Web Cookies
Cookie replay attack unit wise presentation
Web Browser-add ons.pptx
Cookies (in Online Advertising)
Cookies may be set by the website you are visiting
16 cookies
Cookie management
online spying tools
Ad

Recently uploaded (20)

PPTX
ERP Manufacturing Modules & Consulting Solutions : Contetra Pvt Ltd
PPTX
HackYourBrain__UtrechtJUG__11092025.pptx
PPTX
Human-Computer Interaction for Lecture 2
PDF
Building an Inclusive Web Accessibility Made Simple with Accessibility Analyzer
PPTX
WJQSJXNAZJVCVSAXJHBZKSJXKJKXJSBHJBJEHHJB
PPTX
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
PDF
What Makes a Great Data Visualization Consulting Service.pdf
PPTX
Odoo ERP for Injection Molding Industry – Optimize Production & Reduce Scrap
PPTX
Folder Lock 10.1.9 Crack With Serial Key
PPTX
Lesson-3-Operation-System-Support.pptx-I
PDF
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
PPTX
ROI Analysis for Newspaper Industry with Odoo ERP
PDF
Crypto Loss And Recovery Guide By Expert Recovery Agency.
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PPTX
string python Python Strings: Literals, Slicing, Methods, Formatting, and Pra...
PPTX
Foundations of Marketo Engage: Nurturing
PDF
AI-Powered Fuzz Testing: The Future of QA
PPTX
Human Computer Interaction lecture Chapter 2.pptx
PDF
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution
ERP Manufacturing Modules & Consulting Solutions : Contetra Pvt Ltd
HackYourBrain__UtrechtJUG__11092025.pptx
Human-Computer Interaction for Lecture 2
Building an Inclusive Web Accessibility Made Simple with Accessibility Analyzer
WJQSJXNAZJVCVSAXJHBZKSJXKJKXJSBHJBJEHHJB
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
What Makes a Great Data Visualization Consulting Service.pdf
Odoo ERP for Injection Molding Industry – Optimize Production & Reduce Scrap
Folder Lock 10.1.9 Crack With Serial Key
Lesson-3-Operation-System-Support.pptx-I
PDF-XChange Editor Plus 10.7.0.398.0 Crack Free Download Latest 2025
ROI Analysis for Newspaper Industry with Odoo ERP
Crypto Loss And Recovery Guide By Expert Recovery Agency.
Practical Indispensable Project Management Tips for Delivering Successful Exp...
Chapter 1 - Transaction Processing and Mgt.pptx
string python Python Strings: Literals, Slicing, Methods, Formatting, and Pra...
Foundations of Marketo Engage: Nurturing
AI-Powered Fuzz Testing: The Future of QA
Human Computer Interaction lecture Chapter 2.pptx
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution

Cookies

  • 1. Cookies, privacy and cybersecurity Student work: Mansour Abdu Instructor: Ibrahim Al-Adini
  • 2. Cookies? Cookies are small files which are stored on a user's computer. They are designed to hold a modest amount of data specific to a particular client and website, and can be accessed either by the web server or the client computer. This allows the server to deliver a page tailored to a particular user, or the page itself can contain some script which is aware of the data in the cookie and so is able to carry information from one visit to the website (or related site) to the next
  • 3. Can I see/view the cookies I have on my computer? What’s in Cookie? When are Cookies Created? Why are Cookies Used? How Long Does a Cookie Last? Who Can Access Cookies How Secure are Cookies? What are Tracking Cookies?
  • 4. Can I see/view the cookies I have on my computer? Most browsers have a configuration screen which allows the user to see what cookies have been stored on the computer, and optionally to delete them. Note that it is not possible for a webpage to view cookies set by other sites, as this would represent a privacy and security problem.
  • 5. What’s in Cookie? Each cookie is effectively a small lookup table containing pairs of (key, data) values - for example (firstname, Mansour) (second name, Mohammed). Once the cookie has been read by the code on the server or client computer, the data can be retrieved and used to customise the web page appropriately.
  • 6. When are Cookies Created? Writing data to a cookie is usually done when a new webpage is loaded - for example after a 'submit' button is pressed the data handling page would be responsible for storing the values in a cookie. If the user has elected to disable cookies then the write operation will fail, and subsequent sites which rely on the cookie will either have to take a default action, or prompt the user to re-enter the information that would have been stored in the cookie.
  • 7. Why are Cookies Used? Cookies are a convenient way to carry information from one session on a website to another, or between sessions on related websites, without having to burden a server machine with massive amounts of data storage. Storing the data on the server without using cookies would also be problematic because it would be difficult to retrieve a particular user's information without requiring a login on each visit to the website. If there is a large amount of information to store, then a cookie can simply be used as a means to identify a given user so that further related information can be looked up on a server-side database. For example the first time a user visits a site they may choose a username which is stored in the cookie, and then provide data such as password, name, address, preferred font size, page layout, etc. - this information would all be stored on the database using the username as a key. Subsequently when the site is revisited the server will read the cookie to find the username, and then retrieve all the user's information from the database without it having to be re-entered.
  • 8. How Long Does a Cookie Last? The time of expiry of a cookie can be set when the cookie is created. By default the cookie is destroyed when the current browser window is closed, but it can be made to persist for an arbitrary length of time after that.
  • 9. Who Can Access Cookies When a cookie is created it is possible to control its visibility by setting its 'root domain'. It will then be accessible to any URL belonging to that root. For example the root could be set to "whatarecookies.com" and the cookie would then be available to sites in "www.whatarecookies.com" or "xyz.whatarecookies.com" or "whatarecookies.com". This might be used to allow related pages to 'communicate' with each other. It is not possible to set the root domain to 'top level' domains such as '.com' or '.co.uk' since this would allow widespread access to the cookie. By default cookies are visible to all paths in their domains, but at the time of creation they can be retricted to a given subpath - for example "www.whatarecookies.com/images".
  • 10. How Secure are Cookies? There is a lot of concern about privacy and security on the internet. Cookies do not in themselves present a threat to privacy, since they can only be used to store information that the user has volunteered or that the web server already has. Whilst it is possible that this information could be made available to specific third party websites, this is no worse than storing it in a central database. If you are concerned that the information you provide to a webserver will not be treated as confidential then you should question whether you actually need to provide that information at all.
  • 11. What are Tracking Cookies? Some commercial websites include embedded advertising material which is served from a third-party site, and it is possible for such adverts to store a cookie for that third-party site, containing information fed to it from the containing site - such information might include the name of the site, particular products being viewed, pages visited, etc. When the user later visits another site containing a similar embedded advert from the same third- party site, the advertiser will be able to read the cookie and use it to determine some information about the user's browsing history. This enables publishers to serve adverts targetted at a user's interests, so in theory having a greater chance of being relevant to the user. However, many people see such 'tracking cookies' as an invasion of privacy since they allow an advertiser to build up profiles of users without their consent or knowledge.
  • 12. Lesson Summary with Cookies and cybersecurity Cookies in themselves are harmless. They are just data stored by a website in your browser, and they are not malware. It is what sites do with them that determines whether we like them or not. Some cookies are essential to use a site properly, and others might be considered a privacy risk.