Reputation: 15746
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?
Upvotes: 4
Views: 958
Reputation: 51409
Just give the cookie a really high :max_age
value:
http://hexdocs.pm/plug/Plug.Conn.html#put_resp_cookie/4
Upvotes: 4