NoDisplayName
NoDisplayName

Reputation: 15746

Permament cookies in Phoenix Framework

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

Answers (1)

José Valim
José Valim

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

Related Questions