laravel记得我没有在Firefox的Chrome工作 [英] laravel remember me not working in chrome work in firefox

查看:173
本文介绍了laravel记得我没有在Firefox的Chrome工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我用chrome连接到记住我时,并且选择了记住我关闭浏览器并打开它,它工作,即使我没有检查它!



但是使用Firefox它可以很好地工作。当我检查记住我时,关闭然后打开我仍然连接的浏览器。



当我没有检查它并连接时,关闭然后打开浏览器

我不明白为什么它不能在chrome中工作。

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

return Redirect :: intended('/');


解决方案

关闭浏览器后,c $ c> Chrome 仍在后台运行。尝试禁用关闭Google Chrome后继续运行后台应用程序功能,请按以下步骤操作:

  • 打开 chrome:// settings

  • 点击显示高级设置

  • 转到系统部分(向下)并禁用关闭Google Chrome后继续运行后台应用程序
    这将强制 Chrome浏览器完全关闭,然后它会删除会话cookie。



  • 这是使用 Chrome 的一个常见问题,我也遇到过之前,并以这种方式解决它。


    As I mentioned in my post in my Laravel 4.1 application I have the "Remember me" option.

    When I connect in chrome with "Remember me" checked and close the browser and open it, it's working, even when I don't check it!

    But with Firefox it work perfectly. When I check "Remember me", close then open the browser I'm still connected.

    When I don't check it and connect, close then open the browser it return me to the login form with error message.

    I don't understand why it's not working in chrome.

     else if (Auth::attempt($credentials, $remember)) {
    
         return Redirect::intended('/');
     }
    

    解决方案

    It's because, probably Chrome is still running in the background after you've closed the browser. Try to disable Continue running background apps when Google Chrome is closed feature, follow these steps:

    • Open chrome://settings
    • Click Show advanced settings
    • Go to to System section (downward) and disable Continue running background apps when Google Chrome is closed. This will force the Chrome browser to close completely and then it'll delete the session cookies as well.

    This is a common problem using Chrome and I've faced it before and solved it right this way.

    这篇关于laravel记得我没有在Firefox的Chrome工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆