# Programming Phoenix LiveView: Session Data B6.0 (p. 56)

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-session-data-b6-0-p-56/39101>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, errata\
**Created:** [3 February 2022 15:45 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-session-data-b6-0-p-56/39101 "2022-02-03T15:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SophieDeBenedetto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sophiedebenedetto/32/2521_2.png) [@SophieDeBenedetto](https://forum.devtalk.com/u/SophieDeBenedetto)\
**Post date:** [3 February 2022 16:02 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-session-data-b6-0-p-56/39101/2 "2022-02-03T16:02:51Z")

</div>

Hi! Thanks for catching this. The correct code snippet to add is:

```elixir
# lib/pento_web/live/wrong_live.ex
def mount(_params, session, socket) do

  {
    :ok,
    assign(
      socket,
      score: 0,
      message: "Guess a number.",
      session_id: session["live_socket_id"],
      current_user: Pento.Accounts.get_user_by_session_token(session["user_token"])
    )
  }
end

```

We’ll fix that in the next release 🙂

---

_[View the full topic](https://forum.devtalk.com/t/programming-phoenix-liveview-session-data-b6-0-p-56/39101)._
