开发者

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

开发者 https://www.devze.com 2023-01-02 21:41 出处:网络
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 (

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 Sh开发者_开发百科aredSession model, with accompanying database table, with participant1ID, participant2ID etc? Is there a better way? Thanks so much for reading!


Creating a model for shared session is good enough.

0

精彩评论

暂无评论...
验证码 换一张
取 消