且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Laravel 4 Auth有效,但无法保持登录状态

更新时间:2023-12-03 23:01:58

我找到了解决方案.也许这可以帮助其他人:

I found the solution. Maybe this can help others:

致电Auth:attempt后,您绝对不能 echo任何东西.您已经对redirect做过.对我来说没有意义,但解决了问题.

After calling Auth:attempt you must not echo anything. You have do to a redirect. Does not make sense to me but solved the problem.