Definition
- Cookie expiration refers to the duration for which a cookie remains valid on a user’s device. After the expiration period, the cookie is automatically deleted by the browser.
Examples
- Setting a cookie expiration date to two weeks to remember a user’s login status.
- Using a cookie with no expiration date to store persistent user preferences across browser sessions.