开发者

How to control if a user logins twice in rails

开发者 https://www.devze.com 2023-02-24 19:41 出处:网络
Right now Iam using devise for an application and I don\'t want a user to login twice, if it logins for the second time his previous session wo开发者_如何转开发uld be killed. this way the user can\'t

Right now Iam using devise for an application and I don't want a user to login twice, if it logins for the second time his previous session wo开发者_如何转开发uld be killed. this way the user can't login with two browsers, for example he logins first with firefox and then logins with google chrome the firefox session expires.


Something similar here: Can a session be shared between browsers from the same computer in rails?

0

精彩评论

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

关注公众号