Chapter 7. Forms, Cookies, and Sessions

Any website that is beyond simple static web pages is likely to have forms, support file uploads, and maintain some form of data state. Forms, cookies, and sessions are all interrelated and work together to accomplish the common goal of creating a dynamic experience in a web app.

This chapter is about enabling these features in an Express app. Here is what you will learn in this chapter:

  • How to submit forms using various methods
  • How to create, read, update, and delete cookies
  • How to create sessions
  • How to create, read, update, and delete session variables

Using forms to submit data

The HTML form provides two methods for submitting data to the backend using the GET and the POST methods. In this section, we will ...

Get Express Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.