Storing Data Flashcards

1
Q

What is the purpose of session data?

A

Allows personalisation and recall of user input.

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

What can session data be used for?

A
  • eCommerce basket contents.
  • User settings and preferences.
  • Tracking usage and hits.
  • Authentication.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can session data storage be programmed?

A
  • HTML Web Storage Objects.
  • PHP $_Session variables.
  • JavaScript DOM storage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What benefits does session data have over cookies?

A
  • Larger storage space (at least 5MB).
  • Is not reliant on user cooking settings.
  • Data is not transferred to the server.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are cookies?

A

Small text document stored on users machine to save session data.
Limited to 4KB and only 20 are allowed per site.

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

What is the purpose of a cookie?

A
  • To remember user preferences on a site.
  • To understand how users are using the site.
  • For logging in to a service or to make sure users are logged in securely.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the disadvantage of a cookie?

A
  • Most cookies do not usually contain personally identifiable information.
  • Cannot hold code.
  • Can be manipulated for malicious purposes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are third party cookies?

A
  • Comes from a site other than the one the user is browsing.

- Can be used to allow communication between sites

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