How do I setup a shared session between two users on my Ruby on Rails powered site?

Posted by ben on Stack Overflow See other posts from Stack Overflow or by ben
Published on 2010-06-08T11:27:42Z Indexed on 2010/06/08 11:32 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

Hey guys,

The website that I'm building includes a section where two users can interact. I think I know how to do most of it, except the actual session sharing part. I'm using Ruby on Rails & Javascript (jquery), and I've got user login and session management all working okay. Would the best way to create a shared session be to have a SharedSession model, with accompanying database table, with participant1ID, participant2ID etc? Is there a better way? Thanks so much for reading!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery