简体   繁体   English

如何在Ruby on Rails支持的站点上设置两个用户之间的共享会话?

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

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. 我正在使用Ruby on Rails和Javascript(jquery),并且用户登录和会话管理都可以正常工作。 Would the best way to create a shared session be to have a SharedSession model, with accompanying database table, with participant1ID, participant2ID etc? 创建共享会话的最佳方法是使用SharedSession模型,随附的数据库表,partner1ID,participant2ID等吗? Is there a better way? 有没有更好的办法? Thanks so much for reading! 非常感谢您的阅读!

为共享会话创建模型就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在哪里可以学习如何在Ruby on Rails中创建一个支持Javascript的下拉菜单? - Where can I learn how to make a Javascript powered dropdown menu in Ruby on Rails? 两个用户之间的Websocket会话 - Websocket session between two users 不同的登录,但在两台计算机上共享实时会话,我使用什么平台以及如何构建它? - Different logins, but live session shared on two computers, what platform do I use and how would I build that? 如何拒绝/阻止用户在浏览器的新选项卡中打开我网站中的链接? - How do I deny/prevent users opening links in my site in new tabs on their browser? 如何在rails上使用ruby设置jstree - how to setup jstree with ruby on rails 如何在两个带有更新的角度组件之间创建共享数据对象 - How do I create a shared data object between two angular components with updates 单击时如何在两个图像之间切换? - How do I transition between my two images when clicked? 如何在两个字符串之间放置一个空格? - How do i put a space between my two strings? 如何从重定向的付款处理器站点提取交易详细信息并将其保存到我的4 db - How do I extract transaction details from a redirected Payment Processor Site and save to my rails 4 db 如何提交带有stripe.js的表单? - How can I submit my stripe.js-powered form?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM