简体   繁体   中英

How does Laravel's auth system work internally?

After authenticating a user with Laravel's Auth::attempt($credentials); , the document.cookie variable is still empty, so Laravel auth system is not cookie/session based?

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. It seems there is some problem with your test environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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