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

maheshk's avatar

@veve286 I have created a login page, on submit of the login form, I have a UsersController that will check for username and password and for the user_access_level. When the user submits the login page the user will be authenticated, where how do I store this information so that it passes through the middleware. Like do I need to create a session variable and store the information in it.

maheshk's avatar

@pmall

I am now putting the values in session and retrieving the session values wherever necessary but the using Session::get(), in another controller, I am not getting any values. Can you please help me with this?

pmall's avatar

I have no idea about what you are doing

1 like
Previous

Please or to participate in this conversation.