laravel记得我没有在Firefox的Chrome工作 [英] laravel remember me not working in chrome work in firefox
问题描述
当我用chrome连接到记住我时,并且选择了记住我关闭浏览器并打开它,它工作,即使我没有检查它!
但是使用Firefox它可以很好地工作。当我检查记住我时,关闭然后打开我仍然连接的浏览器。
当我没有检查它并连接时,关闭然后打开浏览器
我不明白为什么它不能在chrome中工作。
else if(Auth :: attempt($ credentials,$ remember)){
return Redirect :: intended('/');
关闭浏览器后,c $ c> Chrome 仍在后台运行。尝试禁用关闭Google Chrome后继续运行后台应用程序
功能,请按以下步骤操作: chrome:// settings
显示高级设置
关闭Google Chrome后继续运行后台应用程序
。
这将强制
这是使用 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 theChrome
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屋!