Storing Data Flashcards
1
Q
What is the purpose of session data?
A
Allows personalisation and recall of user input.
2
Q
What can session data be used for?
A
- eCommerce basket contents.
- User settings and preferences.
- Tracking usage and hits.
- Authentication.
3
Q
How can session data storage be programmed?
A
- HTML Web Storage Objects.
- PHP $_Session variables.
- JavaScript DOM storage.
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.
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.
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.
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.
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