【问题标题】:laravel remember me not working in chrome work in firefoxlaravel 记得我不在 chrome 工作,在 firefox 工作
【发布时间】:2014-10-26 22:38:17
【问题描述】:

正如我在 Laravel 4.1 应用程序的帖子中提到的,我有“记住我”选项。

当我在 chrome 中连接并选中“记住我”并关闭浏览器并打开它时,它正在工作,即使我没有选中它!

但在 Firefox 中它可以完美运行。当我选中“记住我”时,关闭然后打开我仍然连接的浏览器。

当我不检查并连接时,关闭然后打开浏览器,它会将我返回到带有错误消息的登录表单。

我不明白为什么它在 chrome 中不起作用。

 else if (Auth::attempt($credentials, $remember)) {

     return Redirect::intended('/');
 }

【问题讨论】:

    标签: php google-chrome firefox laravel remember-me


    【解决方案1】:

    这是因为,在您关闭浏览器后,Chrome 可能仍在后台运行。尝试禁用Continue running background apps when Google Chrome is closed 功能,请按照下列步骤操作:

    • 打开chrome://settings
    • 点击Show advanced settings
    • 转到系统部分(向下)并禁用Continue running background apps when Google Chrome is closed。 这将强制 Chrome 浏览器完全关闭,然后它也会删除会话 cookie。

    这是一个使用Chrome 的common 问题,我之前遇到过并以这种方式解决了。

    【讨论】:

      猜你喜欢
      • 2018-08-20
      • 2017-09-27
      • 2017-02-19
      • 2016-04-18
      • 2012-08-05
      • 2017-05-10
      • 2021-08-12
      • 2016-07-19
      • 2016-04-11
      相关资源
      最近更新 更多