1.

Which of the following defines the Cookie visibility?(a) Document Path(b) LocalStorage(c) SessionStorage(d) All of the mentionedThis question was addressed to me during an interview for a job.I need to ask this question from Cookies topic in division Networking of Computer Network

Answer»

Correct choice is (d) All of the mentioned

Explanation: sessionStorage, LOCALSTORAGE and Document path all are used to STORE data on the client-side. Each ONE has its own storage and expiration limit. Cookie VISIBILITY is scoped by the document origin as Local Storage and Session Storage are, and also by document path.



Discussion

No Comment Found

Related InterviewSolutions