Checkpoint Assignment 3

07 May 2021

Screen Shot 2021-05-07 at 11 07 45 AM

<a href = https://youtu.be/Gkgt8X23p-g>Screencast Here</a>

Describe your design for your site’s shopping cart. That is, will it be a separate page that the user can view and edit, or will it be integrated into the product pages? If so, describe in detail how this will work on your site. Provide several examples of using the cart.

The design for my site’s shopping cart will be simple because it will have the basic information of the product, quantity, price, tax, and total then it will have the options to delete the product, continue shopping and purchasing the product. The shopping cart page will be redirected to a separate page when the user clicks the “view cart” button, if they have not logged in, they will be redirected to a login page where they will login or register for an account before getting access to view their cart.

Explain specifically how you will use sessions to manage your shopping cart. In particular, what shopping cart data will be stored in the session, what data format will be used (NOT what data type, but the format like with the data format used for your registration data). Use code examples showing what data structures (such as arrays and their objects) you will use to manage the shopping cart data and how they will be used in a session.

I will use sessions to manage my shopping cart by expiring each session after 10 minutes and using sessions to carry over the quantities of the products the customer wants in their cart, so if they keep going back and forth, their quantities already selected will be kept. I have yet to create the code for sessions but this is the overall plan of my website.

How will you avoid access to your application when the user has not logged in or registered? What are the particular security concerns you must address?

To avoid access to my application when the user has not logged in or registered, they will not be able to access the cart unless they logged in or registered. The particular security concerns that I must address is if they get access to they cart when they did not log in or register, so I will try avoid that by using cookies to exemplify the security.

Upon a successful login, how do you provide personalization in your UI? Explain how you did or will do this (paste code if necessary)

Upon a successful login, I will provide their username somewhere on the site to show the personalization in my UI. I did this in assignment 2, so I will most likely keep it by saying “(username) thank you for purchasing” or “(username) has (number of items) items in cart”.

If you are working with partners, how will you split up the work in your team so that you are working in parallel as effectively as possible? That is, who is doing what and when?

I am not working with partners so I will be doing all the work for my website.

How are you approaching Assignment 3 differently than Assignment 2?

I am approaching assignment 3 differently than assignment 2 by thinking about the bigger picture and what needs to be done before starting on the project. I am making sure I have everything needed and the code is correct before moving on because if I didn’t do that and I had something wrong, I would have to spend time fixing the codes and possibly getting mixed up in the process.