Cookie redirection in Phoenix Framework

I want to implement the typical “Remember Me” feature on my website, which requires a way to create cookies that expire in the distant future. Is there a way to create them in the Phoenix Framework?

+4
source share
1 answer

Just give the cookie a really high value :max_age:

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

+4
source

All Articles