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

NetoPVH's avatar

Setting session variables in authentication

Hello , I'm doing an authentication system with adldap but am having trouble defining session variables when I perform authentication.

Can anybody help me? I left on my HomeController defining the session. how could I do so that the variables are set automatically after the login

0 likes
2 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

If using ver 5.2 you probably need the web middleware, see the docs.

Please or to participate in this conversation.