1

During authentication, Guardian.Plug.sign_in(conn, user) is storing session token in cookies by default. Let's say i have a field that tells if the user wants to be remembered or not. If not, how can i store session token in session storage (so it gets discarded on closing browser's window) instead of cookies?

Razinar
  • 727
  • 3
  • 13
  • 21
  • Possible duplicate of [Remember me functionality in Phoenix using Guardian](https://stackoverflow.com/questions/47097955/remember-me-functionality-in-phoenix-using-guardian) – PatNowak Nov 06 '17 at 14:34
  • There are two distinct mechanisms and two different sets of functions to do that. Please don't start new questions here, just read Guardian's doc more carefully. – PatNowak Nov 06 '17 at 14:35

0 Answers0