Cookies Flashcards

Learn about cookies

1
Q

What are cookies?

A

Cookies are small files of information that a web server generates and sends to a web browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How long does a web browser store cookies?

A

Web browsers store cookies for a predetermined length of time or for the length of the user’s session on the website.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are cookies sent?

A

Cookies are sent using the HTTP protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where are cookies stored?

A

Cookies are stored in a designated file on the user’s device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some of the things cookies are used for?

A

User sessions, personalization and tracking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How are cookies used for user sessions?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How are cookies used for personalization?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How are cookies used for tracking?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the different types of cookies?

A
  • Session Cookies
  • Persistent Cookies
  • Authentication Cookies
  • Tracking Cookies
  • Zombie Cookies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do session cookies do?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When are session cookies deleted?

A

Session cookies are deleted after a user’s session ends - once they log out of their account on a website or exit the website.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Do session cookies have an expiration date, why or why not?

A

Session cookies do not have an expiration date, this signifies to the browser that they should be deleted once the session is over.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do persistent cookies do?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How long do persistent cookies remain in the browser?

A

Persistent cookies remain in the browser for a predefined length of time. It can range from days to years.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Do persistent cookies have an expiration date?

A

Yes persistent cookies always have an expiration date.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What do authentication cookies do?

A

Authentication cookies ensure that sensitive information is delivered to the correct user sessions by associating user account information with a cookie identifier string.

17
Q

When are authentication cookies generated?

A

Authentication cookies are generated whenever a user logs in to their account via their browser.

18
Q

What is a cookie identifier string?

A

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.

19
Q

What are tracking cookies generated by?

A

Tracking cookies are generated by tracking services.

20
Q

What are some things that tracking cookies track?

A

Tracking cookies can track a users online behaviour, this can include their clicks, sites they visit, their shopping habits, device specifications and location.

21
Q

When do browsers send the data recorded by tracking cookies?

A

Browsers send the data recorded by tracking cookies the next time they load a website that uses that tracking service.

22
Q

What do zombie cookies do?

A

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.

23
Q

What are zombie cookies used for?

A

Zombie cookies are used for tracking users without their permission.

24
Q

Can cookies be dangerous?

A

Yes, cookies cannot infect your device with malware on their own, but criminals can hijack cookies and get access to your browsing data.

25
How much data can be stored in a cookie?
4 Kilobytes can be stored in a cookie.
26
How do you find out how long a persistent cookie is retained?
You can check how long a persistent cookie is retained for by using your browsers developer tools to inspect the cookie details.
27
How are cookies transmitted from the browser to the web server?
Cookies are transmitted in header fields using the HTTP protocol.
28
What is a cookie path?
A cookie path is an attribute that determines which URLs on a domain a cookie is valid for.
29
When creating a cookie how are the numbers counted when setting the expiration date?
exdays*24*60*60*1000 Number of days multiplied by the number of hours in a day, multiplied by the number of minutes in an hour, multiplied by the number of seconds in a minute, multiplied by the number of milliseconds in a second.
30