When handling Login an error response must be shown to the user.
The message should be user friendly and not contain technical information.
A successful login should redirect to a home or dashboard page.
A successful response should save the user details inside the PHP session variable under the key "user".
When handling Login an error response must be shown to the user. The message should be user friendly and not contain technical information.
A successful login should redirect to a home or dashboard page. A successful response should save the user details inside the PHP session variable under the key "user".