Cookies Flashcards
Learn about cookies
What are cookies?
Cookies are small files of information that a web server generates and sends to a web browser.
How long does a web browser store cookies?
Web browsers store cookies for a predetermined length of time or for the length of the user’s session on the website.
How are cookies sent?
Cookies are sent using the HTTP protocol.
Where are cookies stored?
Cookies are stored in a designated file on the user’s device.
What are some of the things cookies are used for?
User sessions, personalization and tracking.
How are cookies used for user sessions?
Cookies help associate website activity with a specific user. A session cookie contains a unique string that matches a user session with relevant content and data for that user.
How are cookies used for personalization?
Cookies can be used to help a website remember user actions or preferences which enables the website to customise the users experience. e.g. if you log out of a website your username can be stored in a cookie and sent to your web browser, next time you load the site your browser will send that cookie to the web server.
How are cookies used for tracking?
Cookies can record what websites users visit, this information is sent to the server that originated the cookie the next time the browser has to load content from that server. With third-party tracking cookies, this process takes place anytime the browser loads a website that uses that tracking service.
What are the different types of cookies?
- Session Cookies
- Persistent Cookies
- Authentication Cookies
- Tracking Cookies
- Zombie Cookies
What do session cookies do?
Session cookies allow websites to remember users within a website when they move between web pages. These cookies tell the server what pages to show the user so the user does not have to remember where they left off, or start navigating the site all over again.
When are session cookies deleted?
Session cookies are deleted after a user’s session ends - once they log out of their account on a website or exit the website.
Do session cookies have an expiration date, why or why not?
Session cookies do not have an expiration date, this signifies to the browser that they should be deleted once the session is over.
What do persistent cookies do?
Persistent cookies store information about users across multiple browsing sessions, this allows websites to remember details like login credentials and shopping cart items even after the user has closed their browser.
How long do persistent cookies remain in the browser?
Persistent cookies remain in the browser for a predefined length of time. It can range from days to years.
Do persistent cookies have an expiration date?
Yes persistent cookies always have an expiration date.
What do authentication cookies do?
Authentication cookies ensure that sensitive information is delivered to the correct user sessions by associating user account information with a cookie identifier string.
When are authentication cookies generated?
Authentication cookies are generated whenever a user logs in to their account via their browser.
What is a cookie identifier string?
A cookie identifier string is a unique alphanumeric code, usually a long string of letters and numbers, that is used to identify a particular user or browser whenever they visit a website.
What are tracking cookies generated by?
Tracking cookies are generated by tracking services.
What are some things that tracking cookies track?
Tracking cookies can track a users online behaviour, this can include their clicks, sites they visit, their shopping habits, device specifications and location.
When do browsers send the data recorded by tracking cookies?
Browsers send the data recorded by tracking cookies the next time they load a website that uses that tracking service.
What do zombie cookies do?
Zombie cookies regenerate after they are deleted, they are able to create copies of themselves outside of a browsers typical storage location. They use these copies to reappear after they are deleted.
What are zombie cookies used for?
Zombie cookies are used for tracking users without their permission.
Can cookies be dangerous?
Yes, cookies cannot infect your device with malware on their own, but criminals can hijack cookies and get access to your browsing data.