State Maintenance

DGL 113: Create Cookies

You may test the cookie examples in one of the following ways:

  1. view the page hosted on a remote web server.
  2. view the page hosted on a local web server, such as XAMPP or a nodejs web server.
  3. view the page on the local file system to test session cookies without a web server. In that case, you should view it using Firefox browser. If the visual inspection tool doesn't work, use FF's Console tool to inspect the cookies by issuing command, document.cookie.