Max-Age (cookie attribute)

A cookie attribute giving how many seconds the browser should keep the cookie before deleting it.

In more detail

maxAge: 60 * 60 * 24 * 7 keeps a session for seven days. Without Max-Age or Expires the cookie is deleted when the browser session ends.

Related terms

Taught in

References