mount/3 callback of a
LiveView module, you get session as the second parameter. It works fine, until you use
live_redirect/push_redirect to mount another
In this case, what is the session passed to second one? The same as original?
Is there a way to change it, without some hacky thing?
I currently did it by using JS to append some signed query string to my url and reload the page, and a plug that reads that signed string and sets appropriate session values, but this feels kind of hacky.
My current use case is user settings page. User changes some settings, then hits save, then goes to another page. User settings is saved in database, but session data is still old, so when new
LiveViews are mounted they still see the old setting.