Hanging on to some state when redircting between Liveviews

HI,

I am trying to implement a lightweight user login (inspired by the one in the PragProg buzzword bingo tutorial.

  1. I have set up a user name (with an login LV & JS inspired by The Pug Automatic
  2. I have it in the session
  3. I can pull it out and use it on LV mount
  4. I can re-route if a user tries to go straight to a game

I would like to implement a :return_to like in a Controller redirect but am currently flailing.

Could someone give me a pointer? or is this a thing we shouldn’t try and do in LV?

Thanks

Tom