Question

Subject Javascript: Before HTML5, websites could store only small amounts of text-based information on a user's...

Subject Javascript:

Before HTML5, websites could store only small amounts of text-based information on a user's computer using cookies. What are the advantages of using cookies and why are they so important as it pertains to web applications?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Cookie:- A cookie is basically an amount of information that persists between a server and a client . A web browser used to stores this information when we are browsing anything on web browser.

Generally cookie contains the information in the form of a name-value pair separated by semi-colons.

Cookies used to maintains the state of a user and cookie used to remembers the user's information among all the web pages.

JavaScript can also manipulate cookies using the cookie property of the Document object. JavaScript can read, create, modify, and delete the cookies that apply to the current web page

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

web Browser Server

-------------------------Request-------------------------->>

< <-----------------------Response+Cookie----------------

-------------------------Request+Cookie-------------------->

  • When a user sends a request to the server, then request is treated as a new request sent by a different user.
  • So, to recognize the old user, we need to add the cookie with the response from the server to the browser at the client-side.
  • whenever a user sends a request to the server, the cookie is added with that request from client machine. Due to the cookie, the server recognizes the users.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Basically two type of cookies

Non-persistent cookie :- It is valid for only single session and removed each time when user closes the browser.

Persistent cookie :-It is valid for multiple session and removed only if user logout from the website.

Advantage of Cookies

  1. Easy and simple technique of maintaining the state.
  2. Cookies are maintained at client side not on server side.
  3. cookie must be enabled in client machine.
  4. We can set textual information in Cookie object.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

why are they so important as it pertains to web applications?

Cookies are widely used in order to make websites work, or work more efficiently, as well as to provide information to the owners of the Website

users session information:-It is required to maintain session information among different pages for any website .Example - Let suppose ,One user is doing registration and its ends after completing many pages. But how to maintain users session information across all the web pages in website.

Better visitor experience or website statistics:-In many situations, using cookies is the most efficient method of remembering and tracking preferences, purchases,and other information required for better visitor experience or site statistics.

HTML 5 uses SQL databases and application cache to store offline data basically

Add a comment
Know the answer?
Add Answer to:
Subject Javascript: Before HTML5, websites could store only small amounts of text-based information on a user's...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Develop an HTML form that could be used to enter your book information (Books, Authors, and...

    Develop an HTML form that could be used to enter your book information (Books, Authors, and Publishers) start with the HTML/JavaScript template provided Expand upon it! What field information would you enter into a system? Have your form use more then just character text fields ... radio buttons, pick lists, and other elements make your form easier to use and you don't need to do lots of JavaScript checks. What fields would be mandatory ... which could be left blank?...

  • Design an original, professional web site following the specifications listed below. This web sit...

    Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...

  • Subject- Organisational theory and design Angela is feeling a lot of stress at work these days...

    Subject- Organisational theory and design Angela is feeling a lot of stress at work these days and she's worried that her behaviour over the past few months will get her into trouble, not only with her boss and the company she works for but also potentially with the police, It all started a few montis ago, when one of Angela's old classmates crie in to the store where she worked. Her classmate explained that she was just starting a new...

  • please answer question 3. Please do take some updated information about Sears regarding their possible Bankruptcy and could the data be a tangible asset used for liquidation. Answr should be at least...

    please answer question 3. Please do take some updated information about Sears regarding their possible Bankruptcy and could the data be a tangible asset used for liquidation. Answr should be at least 2 paragraph. The shrinkage data, combined with sale and purchase data, has expanded the organization 2009, Sears decided to begin an initiativ closer to its customers. They wanted to achieve objective by implementing Big Data technol However, their IT capabilities were not up to the It is clear...

  • Kristen’s Cookie Company You and your roommate are preparing to start Kristen’s Cookie Company in your...

    Kristen’s Cookie Company You and your roommate are preparing to start Kristen’s Cookie Company in your on-campus apartment. The company will provide fresh cookies to starving students late at night. You need to evaluate the preliminary design for the company’s production process to figure out how many orders to accept and how effectively your time, and that of your room mate, will be utilized. BUSINESS CONCEPT Your idea is to bake fresh cookies to order, using any combination of ingredients...

  • Case Study 1: Apple Merging Technology, Business, and Entertainment Why are data, information, business intelligence, and...

    Case Study 1: Apple Merging Technology, Business, and Entertainment Why are data, information, business intelligence, and knowledge important to Apple? Give an example of each type in relation to the iPad. (1 Mark) Explain how Apple achieved business success through the use of information, information technology, and people. (1 Mark) Evaluate how Apple can gain business intelligence through the implementation of a customer relationship management system. (1 Mark) Case Study 1: Apple Merging Technology, Business, and Entertainment This might sound...

  • 1. Socially Optimal Thneed Production (Graphical Analysis) based on Dr. Seuss’ The Lorax. There is only...

    1. Socially Optimal Thneed Production (Graphical Analysis) based on Dr. Seuss’ The Lorax. There is only one question, but it has several parts, (a) through (J), below, plus (k) and (l) for extra credit. The demand curve and supply curve for Thneeds (“A fine something that all people need,” according to the Once-ler Group’s web site) are given by QD= 100 –5P and QS = 2.5P – 5 [HINT: these are regular—that is economically sensible—demand and supply curves that say...

  • Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable...

    Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable detail how a company leverages an ERP system and how its operations are improved after installing an ERP system like SAP. Explain how a supply chain management system helps an organization make its operations more efficient What is Upstream and Downstream management of the supply chain? Explain the concept of “Supply Network”, its benefits, and how technology made this concept available Explain the difference...

  • Industrial Psychology: Please read the case above before answering the following question: What changes would you...

    Industrial Psychology: Please read the case above before answering the following question: What changes would you suggest that could increase the transfer of training in this case? What Went Wrong at University Hospital (Part 1)? Pat Rowe, Vice President of University Hospital, recently attended a conference session that discussed the problems of integrating computer technology into the work practices of health care professionals. The session lecturer argued that implementation often fails because staff do not receive proper training in the...

  • Interpersonal Communication Subject! Advice Column Assignment - Guidelines If you’ve perused a newspaper before, you’re probably...

    Interpersonal Communication Subject! Advice Column Assignment - Guidelines If you’ve perused a newspaper before, you’re probably familiar with the various advice columnists (“Dear Abby” comes to mind) who help out distraught individuals in managing any number of interpersonal crises in his/her life. This assignment is divided into two parts: One where you'll be assuming the role of the letter writer who presents the problem, and another where you'll play the role of the actual advice columnist and respond to letters....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT