为此,有关用户登录的信息存储在比PHP会话“更持久”的内容中: cookie。information about the user being logged-in is stored in something "more permanent" than the PHP session: a cookie基于这个答案,我只能假设,通常自动编码cookie比会话具有更长的生存期,这是使用autologin的唯一原因。这意味着如果我为sessionId cookie设置了无限期的生命周期,那么就不需要自述了,