Components of Web Design 9 – Storage of Data – U21-P1

There are different methods available for which a website utilise within their system in order to save valuable information about a particular object/person, with the different methods and the ways in which they vary from each other they all have some sort of contribution available to a website owner (depending on the scenario).

Starting off with the most common of all of the methods of data storage in Web, is the traditional Cookie. The Cookie is a small file which holds information about a user when viewing a website, they often begin their life once a user has opened a new page in a website which activates the background creation of a Cookie. However due to recent data laws/acts (Data Protection Act 2018 Revision) any website that utilises Cookies has to inform the user they are using Cookies within their website, as well as detailing how they will be used throughout. The types of information which are stored within a Cookie contain information that has to do with either the user or the website itself, for example a Cookie could contain a persons first and last name with information into how it is related to the website. When a user goes back to a website with a related Cookie the website will scan for any Cookies that contain any details that the website could utilise, once they have been read the website would adjust where necessary (such as changing the layout of website based on previous setting changes). Although they can contain quite crucial information they aren’t a large file size as the maximum for the size of a Cookie is only four Kilobytes or 4000 bytes of data.

The next two types of web storage are both pieces within the same area, their similarity being that they are both objects of HTML5 (Hypertext Markup Language Revision 5). An object in this sense is an embedded document within the HTML document. Firstly is Local storage which is the where the information is stored without any sort of expiration date assigned to it, this means that information can be held onto indefinitely with the only way of removing data stored within Local storage being to remove it manually. Secondly is Session storage which acts as a website version of RAM within a computer, meaning that when a window is opened it will begin to store any information that might be needed whilst within the window. However as the comparison implies once the window has been terminated all of the information stored while on the page will be deleted as like RAM it is only there temporarily.

(TBC)

Bibliography

http://www.whatarecookies.com

http://browsercookielimits.squawky.net

https://www.w3schools.com/html/html5_webstorage.asp

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Client-side_storage

https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

https://www.techopedia.com/definition/27674/html5-local-storage