我刚刚从 php 背景开始 Rails,我正在学习本教程:http ://ruby.railstutorial.org/chapters/sign-in-sign-out#top
在第8.2.1节- 您必须将remember_token用户添加到表中,并且令牌的值放置在此字段中。
我的问题是,如果用户在不同的计算机上登录怎么办。由于它更新了该remember_token字段,因此 cookie 登录对于用户登录的先前计算机将无效。id用: , remember_token,为 cookie 创建一个新表是否有意义
created,user_agent_ip_address或者这是否过于复杂?