Skip to content

Middleware and extending the Cookies maxAge #1711

Answered by pilcrowonpaper
rwieruch asked this question in Help
Discussion options

You must be logged in to vote

Ideally we'd like to extend the cookie lifetime when we actually extend the session expiration, but that's not possible in Next.js, so we just extend the cookie lifetime if it exists regardless of whether it's valid or not.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rwieruch
Comment options

@pilcrowonpaper
Comment options

Answer selected by rwieruch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants