简体   繁体   English

laravel记得我不在Firefox的chrome工作中工作

[英]laravel remember me not working in chrome work in firefox

As I mentioned in my post in my Laravel 4.1 application I have the "Remember me" option. 正如我在Laravel 4.1应用程序中的帖子中提到的那样,我具有“记住我”选项。

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! 当我在chrome中连接并选中“记住我”并关闭浏览器并打开它时,即使没有选中它,它也能正常工作!

But with Firefox it work perfectly. 但是,使用Firefox可以完美运行。 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. 我不明白为什么它不能在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. 这是因为关闭浏览器后, Chrome可能仍在后台运行。 Try to disable Continue running background apps when Google Chrome is closed feature, follow these steps: 尝试禁用“关闭Continue running background apps when Google Chrome is closed功能,请按照以下步骤操作:

  • Open chrome://settings 打开chrome://settings
  • Click Show advanced settings 点击Show advanced settings
  • Go to to System section (downward) and disable Continue running background apps when Google Chrome is closed . 转到“系统”部分(向下),并禁用“关闭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. 这将迫使Chrome浏览器完全关闭,然后还将删除会话Cookie。

This is a common problem using Chrome and I've faced it before and solved it right this way. 这是使用Chromecommon问题,我之前已经遇到过并以这种方式解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM