Page 1 of 1

I am posting this again, because cookies result was not displaying(first name .....was empty) on other page. first name

Posted: Sun Jul 03, 2022 12:01 pm
by answerhappygod
I am posting this again, because cookies result was not displaying(first name .....was empty) on other page. first name , last name , email etc should be displayed.
If there is no cookies, still alert was showing cookie was written successfully. Only date was shown. NoJavascript comment was missing.
I Am Posting This Again Because Cookies Result Was Not Displaying First Name Was Empty On Other Page First Name 1
I Am Posting This Again Because Cookies Result Was Not Displaying First Name Was Empty On Other Page First Name 1 (10.8 KiB) Viewed 18 times
Cookies in Vanilla JavaScript only
1. Cookie (read, write and delete cookie): A form (first name, last name , email etc) should save a cookie from one page, then read this cookie on another page. This must use at least two separate pages.
i) If no cookies , then alert no cookie found. If cookie is there ...then cookie is saved.
2. More than one field from the first page must be read onto the second page. For example “Shopping cart” that gives the user the ability to review submitted data on another page.
that means cookies/results on, Displaying saved cookies/results on the other page.
3. Your cookie must persist for 2 years so that it will still be available if the browser is closed and re-opened. This must be dynamic, so it will be always 2 years from the current year.
4. Add the ability to delete the cookie (for example “Clear shopping cart”)
5. Show the current date and time on both pages, nicely formatted for the user, and clearly visible. Use 12 hour clock, (i.e.: 1:30PM) 6. JavaScript source code is well-formatted and easy to read.
7. Use JavaScript comments wherever possible. Please explain what the code is doing.
First Name: Last Name: Email: Review: Date: Read Cookie Read Delete Cookie Delete 2022:6:3 1:22:59 AM
First Name Last Name Email Review Write 2022:6:3 1:24:28 AM This page says Cookie Writed Successfully OK