# Read http only cookie server side

**URL:** <https://forum.elixirforum.com/t/read-http-only-cookie-server-side/62115>\
**Category:** Questions\
**Tags:** phoenix, cookie, http-only\
**Created:** [March 5, 2024, 6:44pm UTC](https://forum.elixirforum.com/t/read-http-only-cookie-server-side/62115 "2024-03-05T18:44:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![al2o3cr](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/al2o3cr/32/3457_2.png) [@al2o3cr](https://forum.elixirforum.com/u/al2o3cr)\
**Post date:** [March 5, 2024, 7:13pm UTC](https://forum.elixirforum.com/t/read-http-only-cookie-server-side/62115/2 "2024-03-05T19:13:29Z")

</div>

The trick is mentioned in the docs for `put_resp_cookie` - the corresponding `fetch_cookies` call needs to [specify which cookies are signed/encrypted](https://hexdocs.pm/plug/Plug.Conn.html#put_resp_cookie/4).

For instance, here’s a spot that does it in `phx.gen.auth`’s code:

> <https://github.com/phoenixframework/phoenix/blob/546ee2fe67f418e2e1e9886cfa37e7b7e48e0bc5/priv/templates/phx.gen.auth/auth.ex#L101>

---

_[View the full topic](https://forum.elixirforum.com/t/read-http-only-cookie-server-side/62115)._
