Comments on: Forgot Password Recovery in Login System with PHP and MySQL https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/ Web & Mobile App Development Company Sat, 11 Apr 2026 03:44:14 +0000 hourly 1 By: jeff https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-230895 Fri, 17 Mar 2023 21:05:38 +0000 https://www.codexworld.com/?p=2047#comment-230895 I am using your reg/login/PWreset. Every thing work great! Thank you! I was wondering how to send an auto email response to the user after they register? Something similiar to the php mailer code utilized by the pw reset. I just want to send the user a thanks for registering No-reply email.
Thank you.

]]>
By: Ananth https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-114782 Sun, 31 May 2020 10:45:11 +0000 https://www.codexworld.com/?p=2047#comment-114782 This is Awesome. It works fine for me. Looking forward many more projects. Thank you so much.

]]>
By: Fracisco https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-99265 Wed, 04 Dec 2019 12:30:17 +0000 https://www.codexworld.com/?p=2047#comment-99265 How would I do to confirm user registration via email, ie confirm that the email is valid during registration?

]]>
By: CodexWorld https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-91611 Thu, 15 Aug 2019 18:57:29 +0000 https://www.codexworld.com/?p=2047#comment-91611 In reply to Joel Malach.

Add the following code at the top of the script where you want to add the restriction.

<?php
session_start
();
$sessData = !empty($_SESSION['sessData'])?$_SESSION['sessData']:'';

if(empty(
$sessData['userLoggedIn']) || empty($sessData['userID'])){
    
header("Location:index.php");
}
?>
]]>
By: Joel Malach https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-91497 Tue, 13 Aug 2019 22:08:52 +0000 https://www.codexworld.com/?p=2047#comment-91497 Please can you tell me how to make a page accessible to logged in users only.
I think there should be some php code I can put at the top of a page that makes it only accessible by someone who has logged in, or, if they are not logged in, send them back to the login page.
Any help would be appreciated

]]>
By: Andrea https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-83188 Tue, 16 Apr 2019 23:02:18 +0000 https://www.codexworld.com/?p=2047#comment-83188 Dear Coder tank you very much for this very useful article!!!
One question. After registration and login, is it possible to show user name and logout button at the top of every other website page?
All other pages are simple html pages. Thank you!!!

]]>
By: CodexWorld https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-54761 Wed, 14 Mar 2018 17:26:31 +0000 https://www.codexworld.com/?p=2047#comment-54761 In reply to marcus.

The user.php file needs to be included in the userAccount.php file.

//load and initialize user class
include 'user.php';
$user = new User();
]]>
By: marcus https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-54739 Tue, 13 Mar 2018 19:26:18 +0000 https://www.codexworld.com/?p=2047#comment-54739 Hi – I was wondering – where do you include the user.php file that creates the DB connection?

]]>
By: CodexWorld https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-48453 Sun, 30 Jul 2017 17:25:37 +0000 https://www.codexworld.com/?p=2047#comment-48453 In reply to Nida Akram.

Check whether you have set the proper from address. Also, check the spam folder of the receiver email. To avoid the spamming related issue, send email via SMTP server – https://www.codexworld.com/send-html-email-php-gmail-smtp-phpmailer/

]]>
By: Nida Akram https://www.codexworld.com/login-system-forgot-password-recovery-email-php-mysql/comment-page-1/#comment-48442 Sun, 30 Jul 2017 10:21:53 +0000 https://www.codexworld.com/?p=2047#comment-48442 Hey i am having some sort of problem i dont get email when ii try to reset the password. Please help me

]]>