8

Session Management

Session management describes the process of preserving data across different user interactions and request-response roundtrips. Session management is crucial to provide personalized experiences on the web. In this chapter, we will work with Remix’s primitives to manage application state and user session data. This chapter covers the following topics:

  • Working with search parameters
  • Creating user sessions with cookies
  • Authenticating access to user data

First, we will work with Remix's primitives to tie application states to URL search parameters. Then, we will utilize HTTP cookies to persist user session data. Finally, we will use the session cookie to authenticate users in loader and action functions.

After reading this ...

Get Full Stack Web Development with Remix now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.