Middleware & Sessions

Express 4.13.3    |    Intermediate
  • 12 videos | 37m 33s
  • Earns a Badge
Rating 4.0 of 2 users Rating 4.0 of 2 users (2)
Building on the Express API, explore the power of the Express Middleware. Learn how to use Middleware to interact with user input and form data, including validation, cookies, variables, and sessions.

WHAT YOU WILL LEARN

  • Describe middleware and how it helps express
    Install the express-validator middleware
    Use the express-validator middleware to do input validation
    Retrieve and use variables passed in on the url
    Retrieve form data via post variables
    Use the cookie-parser middleware to set and get cookies
  • Use the body-parser middleware to parse and format data using json
    Describe session handling with express
    Configure express-session for use in an express app
    Create a session for a successfully logged-in user
    Check session states and display a simple menu to users who are already logged in
    Create an interface to log out a user and remove the user's session

IN THIS COURSE

  • 5m 44s
    Upon completion of this video, you will be able to describe middleware and how it helps Express. FREE ACCESS
  • 2m 29s
    Learn how to install the express-validator middleware. FREE ACCESS
  • Locked
    3.  Using Express-Validator for Input Validation
    3m 50s
    Learn how to use the express-validator middleware for input validation. FREE ACCESS
  • Locked
    4.  Using GET Variables
    2m 29s
    During this video, you will learn how to retrieve and use variables passed in on the URL. FREE ACCESS
  • Locked
    5.  Using Forms and POST Variables
    2m 23s
    In this video, you will learn how to retrieve form data via POST variables. FREE ACCESS
  • Locked
    6.  Using Cookies
    4m 53s
    In this video, you will learn how to use the cookie-parser middleware to set and retrieve cookies. FREE ACCESS
  • Locked
    7.  Using JSON
    2m 31s
    In this video, find out how to use the body-parser middleware to parse and format data using JSON. FREE ACCESS
  • Locked
    8.  Describing Session Handling
    3m 17s
    Upon completion of this video, you will be able to describe session handling with Express. FREE ACCESS
  • Locked
    9.  Configuring express-session
    1m 50s
    In this video, you will learn how to configure express-session to use in an express app. FREE ACCESS
  • Locked
    10.  Creating a Session
    2m 15s
    Learn how to create a session for a user who has successfully logged in. FREE ACCESS
  • Locked
    11.  Keeping Session State
    2m 18s
    In this video, you will check session states and display a simple menu to users who are already logged in. FREE ACCESS
  • Locked
    12.  Removing a Session on Logout
    3m 33s
    In this video, you will create an interface to log out a user and remove the user's session. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.5 of 8 users Rating 4.5 of 8 users (8)
Rating 4.0 of 1 users Rating 4.0 of 1 users (1)
Rating 3.0 of 1 users Rating 3.0 of 1 users (1)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 147 users Rating 4.5 of 147 users (147)
Rating 4.6 of 56 users Rating 4.6 of 56 users (56)
Rating 4.4 of 766 users Rating 4.4 of 766 users (766)