Please use the following instructions for this project.
Create a new home page and about page for this assignment or use one from one of your existing applications.
Provide a link on the home page to the about page.
Use a persistent (for 3 days) cookie to count the number of times the home page has been accessed. Display the results on the about page.
Use a session cookie to store what website the user was viewing before coming to the home page. Display the result on the about page. The value of this cookie should only be set once when entering the home page.
Create a button on the home page that will create a secured persistent (6 months) authentication cookie.
The about page will check for the authentication cookie, if available display the about page, otherwise return to the home page.
Create a button on the about page that will destroy all of the cookies so you can test this application.
Present your project to the class. Discuss how your application works.
Bonus points for using AngularJS
You have created cookies that do the following:
Authentication cookie: Created a cookie for a valid user and used it to protect a page on your website from unauthorized users.
Data analytics cookie: Captured where your customer came from on the way to your site.
Display cookie: Display number of times the customer has come to your page or viewed your content. This is often used to turn on or off advertisements.