Storage Mechanisms [Common Terms]:
Local Storage:
With local storage, data can be locally stored without effecting the browser's performance. It is secure and the user can store large amounts of data unlike cookies. No expiration to the data that is being stored. Even if the browser is closed the data is not deleted.
Session Storage:
Local and session storage are same when it comes to their storage capability. But the later, stores the data only until the session is available. It deletes the data as soon as the session ends. Otherwise, when the browser is closed.
Cookies:
These carry some data from the server and are placed on the client computer. Cookies can also use your browsing history to change the search results. If you remember getting recommendations from the websites, that is because your interest is being cached and is used to generate that result.
One website, domain or protocol cannot use cookies, local storage or session storage of another website. This is because of cross-domain browser. No browser allows it to prevent malicious attacks.
Workaround: You can use Post-Message mechanism to send messages from one website to another website. Remember! Both the sender and receiver should follow this protocol. This is to prevent any random website from sending messages.
SINGLE-SIGN ON
Cookies/ local storage/ session storage are used in SINGLE-SIGN ON. There are some different mechanisms with which this can be accomplished. The user's session information is being stored in the user's computer in the form of cookies/ local storage/ session storage and it is used to authenticate the user's login every time you refresh the back or do an event on the page.[A token is being saved on the computer to check the user's session].
Uses of these storage mechanisms:
These storage mechanisms store the user's browsing history, preferences, session information etc.
Session Management:
Session cookie uses unique session identifier authentication services
Personalize:
Websites use these storage mechanisms to personalize the user's preferences. The websites personalize your search result keeping in mind your preferences.
Tracking:
Track user's browsing habits. Tracks the products you searched for and gives you recommendations.
"Simply they track everything you do on their website"
Comments
Post a Comment