This project is a simple and functional registration and login system, implemented using PHP and MySQL. It allows users to create an account, log in with their credentials, and access a secure area. π
- π User Registration: Allows new users to create an account with a username and password.
- π User Login: Validates credentials and grants access to the secure area.
- π Password Hashing: Ensures security by storing passwords as hashed values.
- π Session Management: Maintains user sessions to track login status.
- πͺ Logout: Allows users to securely log out.
Before running this project, ensure you have the following installed:
- PHP (>=7.4) π₯οΈ
- MySQL ποΈ
- A web server (e.g., Apache or Nginx) π
- A database client (e.g., phpMyAdmin, MySQL Workbench, or command-line client) π§
-
Clone the Repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name -
Set Up the Database:
-
Open your MySQL client.
-
Create a new database:
CREATE DATABASE user_system;
-
Import the provided
database.sqlfile:mysql -u username -p user_system < database.sql
-
-
Configure the Project:
-
Open the
config.phpfile. -
Update the database connection details:
define('DB_HOST', 'localhost'); define('DB_USER', 'your_database_username'); define('DB_PASS', 'your_database_password'); define('DB_NAME', 'user_system');
-
-
Run the Project:
- Place the project files in your web server's root directory (e.g.,
htdocsfor XAMPP). - Start your web server and navigate to
http://localhost/your-repo-name.
- Place the project files in your web server's root directory (e.g.,
/your-repo-name
βββ config.php # Database configuration
βββ register.php # Registration script
βββ login.php # Login script
βββ logout.php # Logout script
βββ secure_page.php # Secure area
βββ database.sql # Database schema
βββ README.md # Project documentation
This project is licensed under the MIT License. Feel free to use and modify it as per your needs. π οΈ
Contributions are welcome! Feel free to submit issues or pull requests for improvements or bug fixes. π‘
For any questions or feedback, please contact:
- Name: Ved Khairnar
- Email: your-email@example.com
- GitHub: yourusername


