Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Imagine that you are the Information Technology coordinator for a small, online

ID: 3740442 • Letter: I

Question

Imagine that you are the Information Technology coordinator for a small, online business. The Director of Customer Service is displeased with the company's website, because she often hears negative feedback from customers. At the moment, all online shopping transactions and customer login information is handled by a contracted vendor, but this solution is slowly becoming untenable. Orders have been lost, purchase history is incomplete or missing, and during a single browsing session, items occasionally disappear from users' online shopping carts. To make things worse, the connections to the e-commerce vendor's servers are usually slow and, lately, unreliable. The President of the company would like to transition from the external e-commerce vendor to an internal solution. He wants the online shopping experience to be "the gold standard," rather than a frustrating experience. To prepare for this Discussion: For this Discussion, sketch a plan about the handling of customer information–a very touchy subject in the office. Some information will be stored in files on the local server, while other information will need to be stored on the user's local machine in the form of cookies. Identify two specific types of data that should be stored in cookies and two other pieces of information that should be stored on the server. Explain why you chose where to store the information, citing the textbook or other research sources to support your decision. Next, construct a few lines of code that may be used to store the information properly on the new website. Briefly describe all variables and functions

Explanation / Answer

SOLUTION:- two specific types of data that should be stored in cookies are given below:-

1- website's reference address settings should be stored in cookies in order to fast execution while searching that page on web again.

2- The unique identifier of a customer should be stored in cookies in order to identification of a customer by a stateful session implemented by browser and webserver.

two other pieces of information that should be stored on the server are given below:-

1-Session Identifier should be stored on server side in order to maintain hassel free browsing over the network.

2- User prefrences should be stored on server as software agents to provide the earlier referenced information to the customer more quickly.

Reasons for choosing the place to store the information are given below:-

For Cookies:-

1-Storing the information in cookies provides scalability that means a load balancer will act as information provider to complete the proper execution of request generated by the customer.

2- We can access the cookies by making use of java script on web browser .

3- All request made by customers doesn't bank on state of the server.

For Server:-

1-Sessions are made easier to use.

2-Sessions provides unlimited data storage.

3-Sessions provides the mechanism of Stateful and Stateless property as per the number of uses and potential requirements of a cutomer.

4- Sessions maintains the equilibrium between the client and server paradigm.

Java Script Code for Set up the cookie for storing information:-

function CookieSetup(Cookie_Name, Cookie_Value, Expiry_Days)

{
    var s = new Date();
    s.setTime(s.getTime() + (Expiry_Days*24*60*60*1000));
    var Value_Expired ="Value has been expired="+ s.toUTCString();
    document.cookie = Cookie_Name + "=" + Cookie_Value + ";" + Value_Expired + ";path=/";
}

Description of this code:- The Function accepts the parameters like cookie name, cookie value, expiry days for cookie via Cookie_Name, Cookie_Value, Expiry_Days respectively. Visitor/Customer name will be stored in a cookie variable by the function "CookieSetup". A cookie setup operation will be performed by combining all parameters together mentioned above.

=======================================================================================