Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php laravel记得我没有在chrome上工作在firefox上工作吗_Php_Google Chrome_Firefox_Laravel_Remember Me - Fatal编程技术网

Php laravel记得我没有在chrome上工作在firefox上工作吗

Php laravel记得我没有在chrome上工作在firefox上工作吗,php,google-chrome,firefox,laravel,remember-me,Php,Google Chrome,Firefox,Laravel,Remember Me,正如我在Laravel4.1应用程序的帖子中提到的,我有“记住我”选项 当我在chrome中选中“记住我”并关闭浏览器并打开它时,即使我没有选中它,它也在工作 但在Firefox上,它工作得非常完美。当我勾选“记住我”时,关闭浏览器,然后打开我仍在连接的浏览器 当我没有检查并连接时,关闭然后打开浏览器,它会将我返回到带有错误消息的登录表单 我不明白为什么它在chrome中不起作用 else if (Auth::attempt($credentials, $remember)) {

正如我在Laravel4.1应用程序的帖子中提到的,我有“记住我”选项

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

但在Firefox上,它工作得非常完美。当我勾选“记住我”时,关闭浏览器,然后打开我仍在连接的浏览器

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

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

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

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

这是因为,在您关闭浏览器后,
Chrome
可能仍在后台运行。当Google Chrome关闭时,尝试禁用
继续运行后台应用程序
功能,请执行以下步骤:

  • 打开
    chrome://settings
  • 单击“显示高级设置”
  • 转到系统部分(向下)并禁用
    在Google Chrome关闭时继续运行后台应用程序
    。 这将强制
    Chrome
    浏览器完全关闭,然后还会删除会话cookie
使用
Chrome
这是一个
常见的
问题,我以前也遇到过,并通过这种方式解决了这个问题