[英]How does Laravel's auth system work internally?
After authenticating a user with Laravel's Auth::attempt($credentials);
在使用Laravel的
Auth::attempt($credentials);
验证用户身份之后Auth::attempt($credentials);
, the document.cookie
variable is still empty, so Laravel auth system is not cookie/session based? ,
document.cookie
变量仍然为空,因此Laravel身份验证系统不是基于cookie /会话的吗?
How does it work? 它是如何工作的?
Laravel sets laravel_session cookie even before any authentication attempt and later use it for storing session variables and authentication information. Laravel甚至在进行任何身份验证尝试之前就设置laravel_session cookie,并在以后将其用于存储会话变量和身份验证信息。 It seems there is some problem with your test environment.
您的测试环境似乎存在一些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.