-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhoenixLiveSession.put_session not working as expected #10
Comments
Issue is fixed. We used a different approach for updating the session based on your package. Closing this now. |
@tmthn how did you manage to sort this out in your project? |
As far as I can tell, this occurs because
This results in the library not putting in the |
We implemented our own custom session store because i could not dig deeper into this problem due to deadlines with this project. We use similar to the librarys approach an ETS table to store the user tokens and sweep them as they expire. Unfortunately we do not use the PubSub solution used here. To ensure access on both levels (http request and socket connection) we run the ensure access function in both calls. In our custom solution we encountered a similar problem as described here beacuse of the double evaluation of the mount callback. I don't really understand what is causing this problem. |
Same issue. |
Oops, seems like my issue was not calling |
I try to update some data within the session when a certain constellation has occurred. As soon as I use the function PhoenixLiveSession.put_session I get the following error:
My mount looks like this:
And i am using the handle info callback as described:
My put session assigns function looks like this:
Am i doing something wrong?
The text was updated successfully, but these errors were encountered: