Skip to content

Remember me functionality and session expiration #3794

Discussion options

You must be logged in to vote

There is no easy way to destroy a session on browser close, as browsers like Chrome use cookie restoration, and even a Session cookie will be persisted when closing the window. As for "remember me", I don't have a good answer from the top of my head. What do you mean exactly?

NextAuth.js sessions are rotating, meaning if the user is interacting with the site, the session won't expire.

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
11 replies
@MichaelWheldon
Comment options

@sansalgo
Comment options

@ptr-h
Comment options

@weidezhang
Comment options

@Benjythebee
Comment options

Answer selected by balazsorban44
Comment options

You must be logged in to vote
3 replies
@udohjeremiah
Comment options

@sarowarhosen03
Comment options

@emiedonmokumo
Comment options

Comment options

You must be logged in to vote
1 reply
@SpasiboKojima
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
question Ask how to do something or how something works
Converted from issue

This discussion was converted from issue #3792 on February 03, 2022 14:18.