Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

v0rix's avatar
Level 1

Auth vs Session

Hi all! In all projects I use sessions to make user authentications, private areas, etc. But recently I discover Auth. My question is: What is better and the differences between use Auth or Session for make users in the app?

Regards!

0 likes
1 reply
Snapey's avatar

Session is for remembering the user from one request to the next. It is not related to authentication.

Auth is Laravel's default authentication provider and gives you very quick access to authenticated users in your project

Once a user is authenticated, sessions and session tokens are used to remember which user is which and which are logged in and which are not.

2 likes

Please or to participate in this conversation.