Permament cookies in Phoenix Framework

NoDisplayName

I want to implement a typical "Remember me" functionality on my site which requires a way to create cookies that expire in some far away future. Is there a way to create those in Phoenix Framework?

José Valim

Just give the cookie a really high :max_age value:

http://hexdocs.pm/plug/Plug.Conn.html#put_resp_cookie/4

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related